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
 

 

COND=ONLY not working

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

New User


Joined: 13 Mar 2014
Posts: 23
Location: USA

PostPosted: Fri Aug 29, 2014 8:34 pm    Post subject: COND=ONLY not working
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Aug 29, 2014 8:47 pm    Post subject: Reply to: COND=ONLY not working
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: 23
Location: USA

PostPosted: Fri Aug 29, 2014 8:54 pm    Post subject:
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: 175
Location: UK

PostPosted: Fri Aug 29, 2014 8:59 pm    Post subject:
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: 23
Location: USA

PostPosted: Fri Aug 29, 2014 9:01 pm    Post subject:
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    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 SCRNAME not working on my mainframe? mrsidhu12 TSO/ISPF 7 Thu Sep 01, 2016 2:17 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 COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts 2 same CLIST pgm but with different n... boyti ko CLIST & REXX 5 Fri Jun 03, 2016 4:55 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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