View previous topic :: View next topic
|
Author |
Message |
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi,
We are dynamically generating the set command in a dataset in JOB1
In JOB2
I want to include this
I cant make use of the INCLUDE parm because I cant access the system library how would I use it in my job to dynamically change the value of the symbolic parm in my JOB2? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Use other SET verb in JOB2... |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if I understand your request correctly, you just need to add the following to your JCL
Code: |
//ANYNAME JCLLIB ORDER=dsname
// INCLUDE MEMBER=memname
|
Gerry |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Gerry,
Thanks it worked as per my requirement.
Regards,
Prem |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Prem,
glad to hear it worked.
Gerry |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Gerry,
I got to know just now we can't use JCLLIB ORDER in production and now is is posible to acheive the same when we dynamically create the SET statement through a flat file.How to use that? |
|
Back to top |
|
|
mtaylor
Active User
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
|
|
|
|
You'll have to reconsider your design/approach. Using INCLUDE is the only way to 'insert' a SET statement into a JCL other than creating your own macro processor of some sort:
Code: |
* psuedo code:
set sentinel_char = '%'
open output_file
open input_file
c = input_file.getChar()
while c != EOF do
if c == sentinel_char
insert my_statements
else
output_file.write(c)
end-if
c = input_file.getChar()
end-do
|
|
|
Back to top |
|
|
|