Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 28
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: 7312

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: 28
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: 194
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: 28
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 DSLIST Command is not working thesumitk TSO/ISPF 14 Mon Dec 10, 2018 8:10 pm
No new posts Using SPUFI with DISTINCT and MAX is ... Time2Live DB2 8 Fri Nov 30, 2018 6:24 am
No new posts Cond parameter srini24 JCL & VSAM 10 Sun Sep 09, 2018 2:06 am
No new posts IBM's FTP not working with TLS encryp... sathyajes TSO/ISPF 10 Tue Aug 21, 2018 1:37 pm
No new posts JCL COND CODE check juares castro JCL & VSAM 5 Tue Jun 26, 2018 7:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us