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
 

 

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: 4648
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am


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