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
 

 

symbolic parameter on PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: symbolic parameter on PARM
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    Post subject: Reply to: symbolic parameter on PARM
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: 1703
Location: Australia

PostPosted: Mon May 21, 2012 11:07 am    Post subject:
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

Site Director


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

PostPosted: Mon May 21, 2012 7:15 pm    Post subject:
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    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 DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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