I am using the Copy File (CPYF) command to copy records from a local file to a remote DDm file. There are a total of 50 files I have to access 10 remote boxes and multiple libraries. is there any way I can put this multiple CL commands in a srcfile and run them as a batch job...and if so could you please give me a example of the syntax I am new to AS400.
CPYF FROMFILE(QGPL/AUTO) TOFILE(DDMLIB1/RMTCAR)
CPYF FROMFILE(QGPL/AUTO) TOFILE(DDMLIB2/RMTCAR)
CPYF FROMFILE(QGPL/AUTO) TOFILE(DDMLIB3/RMTCAR)