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
 

 

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: 2033
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: 4648
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 Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm


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