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

Setting Return code for FTP DEL step


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

New User


Joined: 28 May 2008
Posts: 30
Location: India

PostPosted: Wed Sep 10, 2008 3:34 pm
Reply with quote

Requirement is move the job to error queue if the FTP DELETE is successfull. For this I have to change the MAXCC of Delete step to more than 4.

Code:

//FTPDEL  EXEC PGM=FTP,PARM='52.18.213.42 (EXIT',COND=(0,NE),
//             REGION=8M                                     
//STEPLIB DD DSN=SYS1.SCEERUN,DISP=SHR                       
//SYSTCPD DD DSN=SYS1.TCPPARMS(TCPDATB0),DISP=SHR                                                 
//INPUT     DD *                                             
ftp_ibm                                                       
ibm01                                                         
CD test\APCIS                                                 
pwd                                                           
binary                                                       
DELETE test.di.iol                                           
ls                                                           
close                                                         
quit                                                         
/*   
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Sep 10, 2008 4:45 pm
Reply with quote

You can't do what you want. Setting a non-zero return code for a successful process is rather counter-intuitive.

My best suggestion is to make sure that you write the output of the //OUTPUT DD to a dataset, then in a subsequent step read that dataset and look for the message where the DELETE command was successful. Then, you can set a return-code value as appropriate.
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 How to append a PS file into multiple... JCL & VSAM 3
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top