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
 

 

How to use COND =ONLY/EVEN with ref to a particular STEP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tushar_study

New User


Joined: 01 Feb 2007
Posts: 30
Location: Mumbai

PostPosted: Wed Mar 07, 2007 1:11 pm    Post subject: How to use COND =ONLY/EVEN with ref to a particular STEP
Reply with quote

Hi ,

I have 3 STEPS in my JOB

STEP1,STEP2 and STEP3.(STEP1 BACKSUP A DATASET WHILE STEP 3 DELETES THAT DATASET).

I WANT TO USE (COND=ONLY),IF STEP1 IS SUCCESSFUL.

hOW CAN I USE IT,PLEASE HELP.

tHANKS IN ADVANCE(I DONT WANT TO USE THE if CLAUSE)

rEGARDS,
tUSHAR
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Wed Mar 07, 2007 1:41 pm    Post subject: Re: How to use COND =ONLY/EVEN with ref to a particular STEP
Reply with quote

Quote:
I WANT TO USE (COND=ONLY),IF STEP1 IS SUCCESSFUL.


I thik you don't want to execute steps 2 and 3 if step1 is sucessful.
If it is so then in step2 include the COND parameter as,

In Step 2=> COND=(0,EQ,STEP1)==>If STEP1 returns a code of zero then step2 will be discarded.

Similarly,

In Step 3=> COND=(0,EQ,STEP1)==>If STEP1 returns a code of zero then step3 will be discarded.
Back to top
View user's profile Send private message
tushar_study

New User


Joined: 01 Feb 2007
Posts: 30
Location: Mumbai

PostPosted: Wed Mar 07, 2007 2:57 pm    Post subject: Re: How to use COND =ONLY/EVEN with ref to a particular STEP
Reply with quote

No what i actually meant was That Step 3 should be executed only if Step 1 is a success.

Thanks in advance
Regards,
Tushar
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Wed Mar 07, 2007 3:04 pm    Post subject: Re: How to use COND =ONLY/EVEN with ref to a particular STEP
Reply with quote

Quote:
i actually meant was That Step 3 should be executed only if Step 1 is a success.


Then In Step3 give the following condition,

Step 3==>COND=(0,NE,STEP1)==>When Step1 runs sucessfully and returns zero ,step3 will be executed.
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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


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