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
 
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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm

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