IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Overriding a Proc step in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Aug 26, 2008 9:47 pm
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

Superior Member


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

PostPosted: Tue Aug 26, 2008 9:50 pm
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

Global Moderator


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

PostPosted: Wed Aug 27, 2008 4:33 am
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
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

Superior Member


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

PostPosted: Wed Aug 27, 2008 10:08 am
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
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

Superior Member


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

PostPosted: Wed Aug 27, 2008 11:20 am
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
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

Superior Member


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

PostPosted: Wed Aug 27, 2008 12:09 pm
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: 1702
Location: Australia

PostPosted: Wed Aug 27, 2008 12:29 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top