Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
can multiple condition codes be used in a single step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: can multiple condition codes be used in a single step
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: 436
Location: chennai, India

PostPosted: Tue Jun 20, 2006 1:45 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Jun 20, 2006 3:32 pm    Post subject: Re: can multiple condition codes be used in a single step
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us