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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: Canada

PostPosted: Wed Mar 07, 2007 1:41 pm
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
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: Canada

PostPosted: Wed Mar 07, 2007 3:04 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top