Using TPxx to Control Target Folder and File SUFFIX
(RENAME Method within the !PUT_Session - !End_Put Loop)
Subscribe to keep this site alive! Under new management but as always, still 100% FREE. Anyone with the IBM i is a friend of ours.
(RENAME Method within the !PUT_Session - !End_Put Loop)
The Challenge: We want to RENAME and/or PUT the files to a TARGET DIRECTORY depending on trading partner and/or document (Trading Partner Relationship).
The Solution: We can use the Trading Partner Relationship FTP variables to establish the directory and suffix. This way you can make the value dependent on the TPR. In this example we will be using &TP01(the target folder) and &TP02 (suffix). We will be hard coding the extension.
Warning: Check the default directory when signing into the FTP site and make sure you consider this when evaluating the &TPxx variables. Use a tool like Filezilla to check this.
Here are other Script Variables you can use:
Do you have a new CHALLENGE? Let us know HERE.