Port Parameter on FTP command

155 pts.
Tags:
Application development
CLP
I am trying to upload a file from our server to iSeries via FTP. Since we already use the default port (21) for another location on the server we have to use another one that is defined. When I run the command on the command line, it works perfectly. It uses the correct port. But when I run the exact same command on a CLP program and run it interactively, it goes back and uses the default port 21. Here is the command I run; FTP RMTSYS(NISF01) PORT(10343) Can anyone tell me why it works from the command line but not from a CLP program? Thanks.
ASKED: June 27, 2007  2:48 PM
UPDATED: January 21, 2010  8:50 AM

Answer Wiki

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

It connected with the alternate port when I tried it. My system is at V5R3.

PGM
FTP RMTSYS(SYSTEM2) PORT(10343)
ENDPGM

====================================================

Since we can’t see the CL program you run nor the joblog nor are we told any attributes of the job that runs the CL, there’s not much chance we can figure it out. In general, there is no reason it shouldn’t work the same, assuming the command is wrapped in a way that properly provides STDIN and STDOUT and there are no port restrictions for the job user and who knows what other possibilities.

Tom

Discuss This Question:  

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following