MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP with a port number in batch job

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
v_mvs
Beginner


Joined: 23 Apr 2004
Posts: 10
Topics: 5

PostPosted: Fri Dec 03, 2004 7:13 am    Post subject: FTP with a port number in batch job Reply with quote

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
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Dec 03, 2004 8:12 am    Post subject: Reply with quote

You probably have sequence numbers in the rightmost columns in your input instream data. Scroll right and check it out.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Dec 03, 2004 9:24 am    Post subject: Reply with quote

It's <i>hostname space port</i>, not <i>hostname colon port</i>.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group