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: 4649
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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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