Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
GMacLeod1633803101
Contributor
Contributor

Comparing the mtime of two tFTPFileProperties components

I have taken over support of a job which downloads files from a source FTP location, and transfers them to a target.

What I am trying to do is probably very simple when you know the product well.

I want to ensure that we only perform this transfer on files which are newer at source. I was thinking that if I could use two tFTPFileProperties components to get the mtime of the files on both source and target, I could compare these and then only process files where the source mtime is greater than the target mtime. I can't figure out how to compare the outputs of the two instances of the tFTPFileProperties components. tMap doesn't seem to want to accept more than one, same with tJoin.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Store the mtime value to context variable or global variable on tJavaRow for used in another subjob.

 

Regards

Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi

Store the mtime value to context variable or global variable on tJavaRow for used in another subjob.

 

Regards

Shong

GMacLeod1633803101
Contributor
Contributor
Author

Thanks Shong. That's done the trick. Much appreciated!

 

What I did was ran a Main line from the tFTPFileProperties component to the tSetGlobalVar component. Worked a treat.