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
 

 

to pass variable value from a file to jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue May 08, 2007 3:15 pm    Post subject: to pass variable value from a file to jcl
Reply with quote

Hi,

I have to pass a variable value from a FILE/GDG to a JCL's symbolic parameter. The JCL is in prodcution, so I can't create it dynamically.

Please help
JItendra
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: Tue May 08, 2007 3:22 pm    Post subject:
Reply with quote

What is it that you need to pass that will materially affect the JCL ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue May 08, 2007 3:33 pm    Post subject:
Reply with quote

Why can't you generate the parm dynamically? It is a very standard method...

O.
Back to top
View user's profile Send private message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue May 08, 2007 3:52 pm    Post subject: Re: to pass variable value from a file to jcl
Reply with quote

Please let me know on creating parm dynamically..

NOTE: The varibale value paased from file will be used to to fill symbolic parameter which in turn used to in Files and GDGs names.
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: Tue May 08, 2007 4:08 pm    Post subject:
Reply with quote

Quote:
The JCL is in prodcution, so I can't create it dynamically.


Quote:
Please let me know on creating parm dynamically..


This assumes that you may amend the JCL prior to submission. Is that the case ?

Also, is the JCL submitted via a scheduling software, which if you make changes to, or submit the job from a different source all need to be considered too.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Tue May 08, 2007 5:48 pm    Post subject:
Reply with quote

Here's how:

1. Job1 creates a member of a PROC dataset, say HLQ.INCL.PROC(MEM), with one record: "// SET SYMB=value"

2. Job2's JCL has:
a. a JCLLIB card referencing HLQ.INCL.PROC (unless HLQ.INCL.PROC is one of the system's procedure libraries)
b. a card "// INCLUDE MEMBER=MEM"
c. a later reference like "//DD1 DSN=HLQ.&SYMB"
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: Tue May 08, 2007 10:22 pm    Post subject:
Reply with quote

Hello,

It may help if you post the JCL you are working with.
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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