I have a batch process which will create a IFS file from physical file and FTP to iSeries IFS Directory. FTP function will fail if the FTP server on iSeries is not running. I would like to include a statement in CL to ensure FTP server is running on iSeries before placing the file in IFS directory. Is there any way I can find in CL whether FTP server on iSeries is running or not? MY CL will be on the same server where the IFS directory exists.
Thanks for the suggestions. The reason we are using FTP is the same script is used to transfer the file to remote host and place the file in our IFS directory. We would like to have the file in same format, so that in future it can be transferred to remote host, if remote host encounter any issues.
Regarding STRTCPSVR *FTP, i understood this but how to ensure the command completed successfully.
Discuss This Question: 2  Replies