View previous topic :: View next topic
|
Author |
Message |
jwell rymbei
New User
Joined: 14 Dec 2005 Posts: 22 Location: India
|
|
|
|
Hi,
I have a JCL.
Step1 checks if a file is empty.
Step2 do and FTP. Step2 is an proc.
Step1. File empty check step.
Step2 EXEC FTPBATCH,
COND.FTPBATCH=(0,LT),
PLIB=TEST.PARM
Step2 calls a proc where in the step FTPBATCH one program is executed.
We don't want to remove COND.FTPBATCH. Now how can I add a condition in step2 to check if return code of step1 is not more than 4. |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
jwell rymbei,
Use IF Loop for that particular step.
Hope this helps. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Code: |
// IF (STEP1.RC <= 4) THEN
//STEP2 EXEC FTPBATCH,
// COND.FTPBATCH=(0,LT),
// PLIB=TEST.PARM
// ENDIF
|
|
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
HI,
We can add two Conditions at single steps
Eg:
//STEP2 EXEC FTPBATCH,
// COND.FTPBATCH=(0,LT), (STEP1.RC > 4)
// PLIB=TEST.PARM
Correct me if i am wrong
~Vamsi |
|
Back to top |
|
|
|