Luis Gomez
Member
Hi, everyone
I'm trying to do something simple like a copy file from one folder to another one.
I use the B4700230 (DeleteOrCopyFlatFile) with the path in DOS (Client), something like (\\serverfiles\NewFiles\PRB.txt) to the New path (\\serverfiles\NewFiles\NewFolder\PRB.txt) with a "2" to copy and this works fine.
But when I run the Batch in server, I have to use the IFS format for that (AS400), the IFS folder is NEWFILES/PRB.TXT to NEWFILES/NEWFOLDER/PRB.TXT with the same "2" to copy but this doesn't work.
I read in this same forum that I have to use the "Execute External Program" BSFN to do that, but I donn't know how I have to do the sentence to execute the command right. I try with "CMD CPY OBJ('NEWFILES/PRB.TX') TODIR('NEWFILES/NEWFOLDER/PRB.TXT')" like the command line, but nothing happens
Someone knows how I have to do that?
Thanks for your help!
I'm trying to do something simple like a copy file from one folder to another one.
I use the B4700230 (DeleteOrCopyFlatFile) with the path in DOS (Client), something like (\\serverfiles\NewFiles\PRB.txt) to the New path (\\serverfiles\NewFiles\NewFolder\PRB.txt) with a "2" to copy and this works fine.
But when I run the Batch in server, I have to use the IFS format for that (AS400), the IFS folder is NEWFILES/PRB.TXT to NEWFILES/NEWFOLDER/PRB.TXT with the same "2" to copy but this doesn't work.
I read in this same forum that I have to use the "Execute External Program" BSFN to do that, but I donn't know how I have to do the sentence to execute the command right. I try with "CMD CPY OBJ('NEWFILES/PRB.TX') TODIR('NEWFILES/NEWFOLDER/PRB.TXT')" like the command line, but nothing happens
Someone knows how I have to do that?
Thanks for your help!