View previous topic :: View next topic
|
Author |
Message |
cma rajith
New User
Joined: 28 May 2008 Posts: 30 Location: India
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|