I am using command CPYTOIMPF to convert data from physical file to csv. In TOSTMF parameter of this command I want to pass dynamic folder name with dynamic file name like (/QDLS/&Folder/&File), but it takes hard coded string path like('/QDLS/MyFolder/MyFile.csv'). How to handle it.
I think you will have to "construct" one variable for the PATH parameter (&PATH). Use a CHGVAR &PATH VALUE('/QDLS/' *tcat &FLR *TCAT '/' &FILE) to put the value in the &PATH variable.
yes that was my mistake my assignment has been submitted. I made another variable with 1 character length and given it value '/' and concatenate it. Thanks for reply.
Discuss This Question: 5  Replies