View previous topic :: View next topic |
Author |
Message |
v_mvs Beginner
Joined: 23 Apr 2004 Posts: 10 Topics: 5
|
Posted: Fri Dec 03, 2004 7:13 am Post subject: FTP with a port number in batch job |
|
|
I would like to know how can we give port number in the instream jobcard. For example
//STEP010 EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//INPUT DD *
aaa.aaa.aa
username
password
Put 'filename' fname
QUIT
//OUTPUT DD SYSOUT=*
//*
I face an issue when i run the above job with the error "invalid port number" . But for the same ip address and username password i am able to FTP to the server from the Command prompt (option 6)
I have also tried in the job by giving the port number as:
aaa.aaa.aa:21
Still it fails.
Any help regarding this will be highly appreciated.
Thanks
Leo |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Fri Dec 03, 2004 8:12 am Post subject: |
|
|
You probably have sequence numbers in the rightmost columns in your input instream data. Scroll right and check it out. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Fri Dec 03, 2004 9:24 am Post subject: |
|
|
It's <i>hostname space port</i>, not <i>hostname colon port</i>. |
|
Back to top |
|
|
|
|