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
 
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: 965
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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