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
 

 

Override a parm declared inside the proc through it's jcl

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

New User


Joined: 07 Dec 2009
Posts: 18
Location: mumbai

PostPosted: Mon Feb 01, 2010 5:05 pm    Post subject: Override a parm declared inside the proc through it's jcl
Reply with quote

I need to override a parm declared inside the proc through it's jcl.
Can anybody help me doing so?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 01, 2010 5:13 pm    Post subject:
Reply with quote

Yes, click the "IBM Manuals" button at the top of any page, then find the JCL reference manual, and read it.

If you then have problems after reading the manual, please feel free to post your question clearly stating what the problem is.
Back to top
View user's profile Send private message
medhachaudhari

New User


Joined: 07 Dec 2009
Posts: 18
Location: mumbai

PostPosted: Mon Feb 01, 2010 5:32 pm    Post subject:
Reply with quote

Thanks..I went through the manuals even before posting this question.
I just have a small doubt, suppose you want to override a symbolic parameter that is declared in the proc through the jcl.
eg. In the proc HM50099P

//HM50099P PROC PGM1='HM4020',
// PGM2='HM5050',

I want to override PGM1 and comment PGM2 through the jcl.
Could you let me know if this is possible.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 01, 2010 5:42 pm    Post subject:
Reply with quote

Without seeing the internals of the PROC how can we help.

This is something that you could try yourself, just create your own instream procedure to ensure that whatever you do will not affect any production datasets, and see what happens.

I don't wish to appear brash, but this is a HELP forum rather than a reference library for things that can so easily be tried and tested by yourself.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 5:44 pm    Post subject:
Reply with quote

Expat,

with TYPRUN=SCAN any JCL can be tested, production or not.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 01, 2010 8:43 pm    Post subject:
Reply with quote

PeterHolland wrote:
with TYPRUN=SCAN any JCL can be tested, production or not.

True, but one exhibit from the black museum of experience was when I submitted a job TYPRUN=SCAN and inadvertantly erased the comma before the statement, so the job ran ................. caused all sorts of grief at the time. Hence the advice to use a test proc for trial / testing / learning purposes.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Mon Feb 01, 2010 9:00 pm    Post subject:
Reply with quote

I need to override a parm declared inside the proc through it's [sic] jcl.

I want to override PGM1 and comment PGM2 through the jcl.

As is common in this age of "agile development", the requirements were not fully considered or specified at first. Tell us everything else that you want to do in this job -- run STEP2 five times and skip the rest of the steps, perhaps? -- and then you might get a meaningful answer.
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: Mon Feb 01, 2010 9:02 pm    Post subject: Reply to: Override a parm declared inside the proc through i
Reply with quote

To be honest, I think the JCL Reference Guide is quite clear about what is and is not possible in a PROC override.
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Tue Feb 02, 2010 1:40 pm    Post subject: Reply to: Override a parm declared inside the proc through i
Reply with quote

eg. In the proc HM50099P

Code:

//HM50099P PROC PGM1='HM4020',
// PGM2='HM5050',
 


change the code in your PROC as below
eg. In the proc HM50099P
//HM50099P PROC PGM1=&PGM1,
// PGM2=&PGM2,

In you runjcl where you are invoking the PROC HM50099P, substitute the values for PGM1 and PGM2 to whichever you want at run time.

Runjcl:
// EXEC HM50099P,PGM1='HM4020',PGM2='HM5050'


-Ajay
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 Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am


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