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

symbolic parameter on PARM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhamarekm

New User


Joined: 20 Sep 2010
Posts: 9
Location: Pune

PostPosted: Mon May 21, 2012 10:40 am
Reply with quote

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
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Mon May 21, 2012 11:04 am
Reply with quote

It seems that you have got it all wrong!
Do some serious reading about procedures and parameters in IBM manuals
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon May 21, 2012 11:07 am
Reply with quote

Hi,

look at
Code:
//         JCLLIB  ORDER=library name   
//         INCLUDE MEMBER=MEM01             


your MEM01 should look like this
Code:
// SET MEM01=8L



Gerry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 21, 2012 7:15 pm
Reply with quote

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
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 JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top