FTP Server on iSeries

290 pts.
Tags:
FTP
iSeries
Physical File
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.


Software/Hardware used:
Iseries OS
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Easiest way

strtcpsvr *FTP

then below monmsg cpf9999 , if already started the generic message will just ignore and keep going

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Why do you need to use FTP at all? You can copy the data from a PF into an IFS directory streamfile without FTP. So, is there a reason for using FTP?
    33,080 pointsBadges:
    report
  • Babs312
    Hi All,

    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.
    290 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: