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
 

 

Setting Return code for FTP DEL step

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

Moderator Team Head


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

PostPosted: Wed Sep 10, 2008 4:45 pm    Post subject: Reply to: Setting Return code for FTP DEL step
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    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 9 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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 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


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