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
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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