Portal | 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

Moderator Emeritus


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

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: 197
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 FSET not working on my receive MARY LEE CICS 3 Fri Sep 25, 2020 2:20 am
No new posts Mainframe jcl job with href links not... steven bynum All Other Mainframe Topics 3 Fri Aug 28, 2020 10:02 pm
No new posts On a team working on a new project fo... zCMHII All Other Mainframe Topics 2 Mon Apr 06, 2020 9:15 pm
No new posts How efficient are you, while working ... vasanthz General Talk & Fun Stuff 0 Tue Mar 31, 2020 11:39 pm
No new posts Large'ish Working Storage and SOS issues govindc CICS 0 Sat Jan 18, 2020 1:58 am

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