View previous topic :: View next topic
|
Author |
Message |
Poha Eater
New User
Joined: 31 Aug 2016 Posts: 74 Location: India
|
|
|
|
Hi All,
I wanted to ask if it is possible to pass the value of Symbolic parameter in proc from a file. In other words, can we write the SET statement in a file and include that file in your JCL and use the value of that SET statement for the symbolic parameter in proc.
I tried to run a jcl with file having SET statement and included this file (by using the INCLUDE keyword) in the jcl and used the Symbolic parameter in the proc. But this gave me an error.
Please let me know if this is even possible. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2025 Location: USA
|
|
|
|
1) There are no such things as "files"
2) In JCL, the statement INCLUDE can include only:
--- a member of an available PROCLIB-like library
--- the member must be a part of pure JCL code
3) If "this gave you an error" then definitely you must "apply appropriate fix" |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
you can't |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Perhaps, It is best you explain what's the ultimate Goal and you might get some better solutions. This won't work with what you tried. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2025 Location: USA
|
|
|
|
RTFM:
Quote: |
INCLUDE statement
z/OS MVS JCL Reference
SA23-1385-00
Purpose: Use the INCLUDE statement to:
•Identify the name of the member of a partitioned data set (PDS) or partitioned data set extended (PDSE) that contains a set of JCL statements (such as DD and OUTPUT JCL statements) called an INCLUDE group.
•Imbed the INCLUDE group in the JCL stream at the position of the INCLUDE statement.
The INCLUDE group replaces the INCLUDE statement, and the system processes the imbedded JCL statements as part of the JCL stream. The JCL statements, which are subject to all JCL processing rules, must be complete statements; that is, you cannot use an imbedded statement to continue the statement that precedes INCLUDE. |
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
and to be clear - the INCLUDE process is done before the first program is run. |
|
Back to top |
|
|
|