Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us