on 12-20-2018 10:07 AM
Hello,
In SAP Data Services, I have setup a file location of FTP protocol. The FTP destination has more than 10 directories under the root directory and each directory has its own directories inside. I would need to dynamically determine the directory location inside this FTP destination and place a flat file in it.
Initially I thought this is easy to solve by using a global variable in the 'Remote Directory' and I can write a script to determine the remote directory location and place it in the global variable.
However Data services do not allow me to use variable in the Remote directory setting of the file location. So I need to use a static location which does not solve my problem I have.
I cannot create multiple file locations for all the directories because there are hundreds of them.
Do you have any pointers on how to determine the remote directory dynamically?
Thanks,
Sandesh
You cannot use a Global Variable in a File Location definition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Greetings sreeecenan & kumark_tib87 ,
Please see an example solution of how you can achieve this using bash script
KBA 3217756 contains a workaround script for both powershell and bash, this is just an example, you can extend the script further based on your requirements.
Best Regards,
Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sreeecenan
Regards
Arun Sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Meanwhile before I received replies on this post, I have also raised the same question with SAP and they have taken up it as a feature for future release to include this possibility to determine the file location dynamically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.