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

Joined: 29 Apr 2005 Posts: 10 Topics: 6
|
Posted: Tue Sep 30, 2008 2:27 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 |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Mon Oct 26, 2009 4:53 pm Post subject: |
|
|
No, you cannot do this directly.
What you can do is generate "new" jcl with the dynamic info resolved and submit this generated jcl thru the Internal Reader. Talk to someone on your system to learn how this is done on your system. _________________ All the best,
di |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Tue Oct 27, 2009 1:53 pm Post subject: |
|
|
If your file can be in the form of a JCL INCLUDE statement, you can use it to set the "class" when your job is submitted.
Your file:
Your JCL: Code: | //MYPROCS JCLLIB ORDER=(your.PDSfile.name)
//*
//*
//* INCLUDE STATEMENT EXAMPLE - FETCHED FROM JCLLIB
//*
//STEP01 EXEC PGM=IEFBR14
// INCLUDE MEMBER=yourmembername
//SYSPRINT DD SYSOUT=&MYCLASS |
_________________ 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 |
|
 |
|
|