Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Overriding a Proc step in JCL

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

New User


Joined: 31 Aug 2007
Posts: 55
Location: bangalore

PostPosted: Tue Aug 26, 2008 8:57 pm    Post subject: Overriding a Proc step in JCL
Reply with quote

Hi frnds,

My doubt is----
I have 3 steps in Proc and i want override the 2nd step inside the PROC .

is it possible to override a step inside PROC using JCL???
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Tue Aug 26, 2008 9:47 pm    Post subject: Reply to: Overriding a Proc step in JCL
Reply with quote

Can you provide an example of the step from the PROC and what it is that you want to override.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Aug 26, 2008 9:50 pm    Post subject:
Reply with quote

Hi,

Yes, it's possible, if this
Quote:
is it possible to override a step inside PROC using JCL???
means - is it possible to override a DD name ? then go like this-
Code:
//step2.ddname DD dsn=....override


If it's about nested PROCs, forget about over-ride.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Aug 27, 2008 4:33 am    Post subject: Reply to: Overriding a Proc step in JCL
Reply with quote

5.2 Modifying Procedures from the z/OS V1R9.0 MVS JCL Reference manual.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Wed Aug 27, 2008 10:01 am    Post subject: Reply to: Overriding a Proc step in JCL
Reply with quote

Hi..

Can anyone please tell, is it possible to stop a particular step from getting executed in a proc by making changes in JCL.


Thanks!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 10:08 am    Post subject:
Reply with quote

..remove that step from the JCL..


PS. BTW, How does your question relate to current thread.. icon_confused.gif
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Wed Aug 27, 2008 10:36 am    Post subject: Reply to: Overriding a Proc step in JCL
Reply with quote

Hi Anuj,

What you said is fine, but i cant remove the step from Proc as its in production environment and moreover its a one time thing, What I mean to say is I have a JCL which calls a catalog proc which has 3 steps and i want to bypass the 2nd step without removing it from the proc, so I think we need to mention the COND parameter in Step 2 to ignore this step and execute the third step.



Thanks!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 11:20 am    Post subject:
Reply with quote

Hi Abhishek,

Your politenees wins over my sarcasm... icon_smile.gif. Try this -
Code:
//JOBNAME JOB (@),...
//         MSGCLASS=?,NOTIFY=&SYSUID,             
//*                                               
//STEP1  EXEC  PROC
//             RLSELB=....somelib
//             COND.STEP2=(99,NE)


Actually, when you have a new question it's bettetr to start with a new thread, otherwise the current thread loses it's own essence.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Wed Aug 27, 2008 11:57 am    Post subject: Reply to: Overriding a Proc step in JCL
Reply with quote

Hi Anuj,

Thanks for the solution...

“True politeness consists in being easy one's self, and in making every one about one as easy as one can”

icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 12:09 pm    Post subject:
Reply with quote

Hopefully, I had been helpful.. icon_smile.gif

- Ad
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Aug 27, 2008 12:29 pm    Post subject:
Reply with quote

Hi,

what if STEP1 returns a cond code of 99 ? You would be better off coding
COND=(0,LE)


Gerry
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm

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