<i>Is there a CLP command to accomplish this...</i>
No. A CLP is an AS/400 Control Language program. It doesn't run on PCs. The Receive Files from Host function is a PC function, a part of iSeries Access. It doesn't run on AS/400s.
A better question would be to describe the business activity that you need to perform and ask how it can be automated. Are there files that are used by a PC server? Are they updated or generated by your AS/400? Are they uploaded from some remote system? What format is needed for the PC copy of the data?
It seems probable the Receive Files from Host is not the best choice. A more likely choice would be either transfer through the /QNTC file system or through a simple directory share. Format the file with CPYTOIMPF or a more advanced function.
But it's hard to tell without knowing what needs to be done.
You're receiving files from the iSeries to a PC running iSeries Access?
If so, you can probably do this using some Windows scripting and Windows scheduling..
Or you can set up a PC batch program to pull the file via FTP from the iSeries and schedule that through Windows.
You can also send the files from the iSeries system to an FTP server you can set up a batch job on the iSeries to do that.
As far as CL commands, there is the STRPCO and STRPCCMD CL commands. The STRPCCMD will executer a command on the PC - which could be a script that downloads the file.. Seems too complicated to me.. And, I think you need to execute the command from the PC you will want to send the file from.
Last Wiki Answer Submitted: July 31, 2010 9:10 am by mcl2,725 pts.