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: 
abundy1637252934
Contributor
Contributor

How to get the _LOCALDIR_ variable from tFTPGet

Hi,

I'm using Talend Studio.

In the tFTPGet component properties, when you pass the mouse over the "local directory" field, you can see the message "the variable associated with this parameter is: _LOCALDIR_"

I would like to retrieve the contents of this variable to use elsewhere in the job and perhaps in a subjob.

Unfortunately, this variable is not described in the online help for the tFTPGet component which only has global variables.

Could someone help me and explain me how I can retrieve the value of this variable?

If not, is it possible to set the "local directory" field with a global variable that I could then use as I want?

THANKS.

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

As a context variable name for the local folder on tftpget, the job is running from studio when you use "local_dir". (LOCALDIR = "/tmp")

You could define a context variable for your Job in context view

LOCALDIR = context.temp_dir

https://help.talend.com/r/en-US/8.0/studio-user-guide/contexts-and-variables

Feel free to let us know if it doesn't work.

Best regards

Sabrina

View solution in original post

5 Replies
Anonymous
Not applicable

Hello,

As a context variable name for the local folder on tftpget, the job is running from studio when you use "local_dir". (LOCALDIR = "/tmp")

You could define a context variable for your Job in context view

LOCALDIR = context.temp_dir

https://help.talend.com/r/en-US/8.0/studio-user-guide/contexts-and-variables

Feel free to let us know if it doesn't work.

Best regards

Sabrina

abundy1637252934
Contributor
Contributor
Author

A big thank you for this quick response.

I try these recommendations as soon as possible, and keep you informed of the consequences.

Anonymous
Not applicable

Hello,

Don't hesitate to post your issue here and feel free to let us know if there is any further help we can give.

Best regards

Sabrina

abundy1637252934
Contributor
Contributor
Author

It works fine !

Thanks a lot for the tips.

 

Best regards.

Anonymous
Not applicable

Hello,

Great it helps and feel free to let us know if there is any further help we can give.

Best regards

Sabrina