View previous topic :: View next topic
|
Author |
Message |
jetumax
New User
Joined: 02 Dec 2005 Posts: 8 Location: Mysore, INDIA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What is it that you need to pass that will materially affect the JCL ? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Why can't you generate the parm dynamically? It is a very standard method...
O. |
|
Back to top |
|
|
jetumax
New User
Joined: 02 Dec 2005 Posts: 8 Location: Mysore, INDIA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
It may help if you post the JCL you are working with. |
|
Back to top |
|
|
Digvijay Singh
Active User
Joined: 20 Apr 2022 Posts: 148 Location: India
|
|
|
|
Phrzby Phil wrote: |
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" |
I was going through this post and i have same requirement could you please explain this bit more.
Thanks |
|
Back to top |
|
|
Digvijay Singh
Active User
Joined: 20 Apr 2022 Posts: 148 Location: India
|
|
|
|
adding on this question i have same requirmnet please if anyone can give any hint:
my 1sr job is creating one file which contains data as below
s
Code: |
sssssssssssssssssssssssssssssssssssssssssssssssss
VIEW ALT0.Q.NDVR.INTERNAL.ETT3
Command ===>
****** ***************************** Top of Data *
000100 P761993
000200 QSYS
000300 0202251 --this one i want to use as symbolic parm
to my next job
****** **************************** Bottom of Data |
If you see in 3rd row i have one nbr which i want to use as symbolic parameter in my next job .
is this possible or what i can do to achieve this.
anyone any hint or suggestion. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2136 Location: USA
|
|
|
|
Digvijay Singh wrote: |
Phrzby Phil wrote: |
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" |
I was going through this post and i have same requirement could you please explain this bit more.
Thanks |
1. Do not tailgate any 15-year old topic.
2. Please go here |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Locked and please start a new post going forward. |
|
Back to top |
|
|
|