IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP return code


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sakthi_ksv

New User


Joined: 20 Jul 2006
Posts: 48
Location: Chennai

PostPosted: Tue Dec 25, 2007 7:27 pm
Reply with quote

Hi,

While trying to get a file to mainframe dataset from a FTP server and if the file is not there, what will be the return code of the particular step. For example in the following code

Code:

//STEP1 EXEC PGM=FTP,REGION=2M,PARM='(EXIT'
//SYSPRINT DD SYSOUT=*                     
//OUTPUT   DD SYSOUT=*                     
//INPUT    DD *                           
10.239.30.76                               
LOGINID                                   
PASSWORD                                   
CD MYFOLDR
LOCSITE LRECL=436                         
LOCSITE RECFM=VB                           
LOCSITE PRI=10                             
LOCSITE SEC=5                             
GET NITEST.TXT 'XIND81.SAKTHI.NITEST'     
QUIT                                       


what will be the return code of this step, if the file NITEST.TXT is not there in the folder.

Thanks in advance,
Sakthi.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Dec 25, 2007 8:20 pm
Reply with quote

Try running the job using this instead:

Code:

GET THISISAFILETHATISNOTHERE.TXT 'XIND81.SAKTHI.NOFILE'


It will show you the return code and no one will have to look it up for you.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Dec 25, 2007 8:30 pm
Reply with quote

4.11.1 FTP standard return codes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top