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

can multiple condition codes be used in a single step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jwell rymbei

New User


Joined: 14 Dec 2005
Posts: 22
Location: India

PostPosted: Tue Jun 20, 2006 1:41 pm
Reply with quote

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
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Tue Jun 20, 2006 1:45 pm
Reply with quote

jwell rymbei,

Use IF Loop for that particular step.

Hope this helps.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jun 20, 2006 3:32 pm
Reply with quote

Code:

// IF (STEP1.RC <= 4) THEN
//STEP2 EXEC FTPBATCH,
//  COND.FTPBATCH=(0,LT),
//  PLIB=TEST.PARM
// ENDIF
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Jun 26, 2006 8:06 pm
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Filter records where condition is in ... SYNCSORT 6
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Using JOINKEYS - Exclude accounts whi... SYNCSORT 10
Search our Forums:


Back to Top