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

COND=ONLY not working


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreya19

New User


Joined: 13 Mar 2014
Posts: 34
Location: USA

PostPosted: Fri Aug 29, 2014 8:34 pm
Reply with quote

Hi all,

I have 5 steps in JCL. I have COND=ONLY coded on Step 3.

My step 2 terminates with JCL error - reason SORTIN dataset is not present.

As per my understanding, Step 3 should execute since cond=only is coded on it. But it doesn't execute.
Messages in spool - invalid disp parameter for sortin dataset in step2 and job terminates. It never goes to step 3.

Sortin for step 2: //SORTIN DD DSN=ABCD.DATA1(0),DISP=SHR

Can someone please point out my mistake?

Thanks!
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 29, 2014 8:47 pm
Reply with quote

Check your understanding of COND=ONLY in the JCL Reference.
Back to top
View user's profile Send private message
shreya19

New User


Joined: 13 Mar 2014
Posts: 34
Location: USA

PostPosted: Fri Aug 29, 2014 8:54 pm
Reply with quote

Is my understanding incorrect? The tutorials that i read said steps coded with COND=ONLY execute only when the previous step abends.
Here step 2 is abending, but step 3 that is coded with cond=only does not execute.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Fri Aug 29, 2014 8:59 pm
Reply with quote

In your first post you send the job was failing with a JCL error. Now you're saying it is abending.

Which is it? It cannot be both.
Back to top
View user's profile Send private message
shreya19

New User


Joined: 13 Mar 2014
Posts: 34
Location: USA

PostPosted: Fri Aug 29, 2014 9:01 pm
Reply with quote

JCL error.

Thanks...Got the answer.
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 PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
Search our Forums:

Back to Top