View previous topic :: View next topic |
Author |
Message |
karthikbabudh Beginner

Joined: 29 Apr 2005 Posts: 10 Topics: 6
|
Posted: Tue Sep 30, 2008 2:30 am Post subject: Passing Value from a file to JCL |
|
|
Hi,
Let me know whether there is anyway to read a file from JCL and pass the file content to JCL which will be used as a parameter in the JCL.
For ex:
In the below statement instead of hard coding the *, I need to read a file and then put that value here.
//SYSPRINT DD SYSOUT=* _________________ Regards,
Karthik Babu. |
|
Back to top |
|
 |
callanand Beginner

Joined: 12 Jun 2007 Posts: 23 Topics: 2
|
Posted: Tue Sep 30, 2008 5:08 am Post subject: |
|
|
Karthik,
Will your file be having multiple records or just one. If you have multiple records then on what basis do you want to select a record. Please show with an example. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Sep 30, 2008 7:35 am Post subject: |
|
|
Karthik, I think we the Forum members need to interpret your question as you wish to read some value from a dataset and then change a parameter of some other job to that value before that other job gets submitted. Obviously, parameter values in a job that's already running can't be modified. |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Tue Sep 30, 2008 10:57 am Post subject: |
|
|
You can use JCL INCLUDE to supply the DD to the job from a file as the JOB is submitted.
The file contains a member named SYSOUT that looks like Code: | //SYSPRINT DD SYSOUT=* | and you use JCLLIB and INCLUDE to pick it up. When you change the member, your next submitted job picks up the change. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
|
|