Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP return code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP return code
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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Dec 25, 2007 8:30 pm    Post subject: Reply to: FTP return code
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us