View previous topic :: View next topic
|
Author |
Message |
bhamarekm
New User
Joined: 20 Sep 2010 Posts: 9 Location: Pune
|
|
|
|
Hi,
In my Procedure, we used to pass value through PARM as below
//STEP010 EXEC PGM=PGM01,PARM='8L'
Here the PARM value can change so I dont wanted to hard code this value and wanted to pass through Symbolic parameter by giving the value 8L in a dataset. We tried the below code job is getting abended.
//STEP010 EXEC PGM=PGM01,PARM=&ABC(&MEM01)
Here ABC is library and MEM01 is a member in which we have given value as '8L' but this is giving JCL error.
Can anybody tell us how to pass value through PARM without hardcoding? |
|
Back to top |
|
|
Peter cobolskolan
Active User
Joined: 06 Feb 2012 Posts: 104 Location: Sweden
|
|
|
|
It seems that you have got it all wrong!
Do some serious reading about procedures and parameters in IBM manuals |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
look at
Code: |
// JCLLIB ORDER=library name
// INCLUDE MEMBER=MEM01
|
your MEM01 should look like this
Gerry |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is the intent to provide a parm value to the execution of the program or is the goal to point the process to a member in some parm library?
If the goal is to provide some parm data, the EXEC might be:
Code: |
//STEP010 EXEC PGM=PGM01,PARM='&myparm' |
If the parameter data is to be read form a parameter library (ddname THEPARMS) the jcl might be:
Code: |
//STEP010 EXEC PGM=PGM01
//THEPARMS DD DSN=theparms.dsn(&myparm),DISP=SHR |
|
|
Back to top |
|
|
|