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
 
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: 2442
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: 1781
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: 4650
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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
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 Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm

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