IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we pass the value of Symbolic parameter from File


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Thu Sep 05, 2019 2:21 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Thu Sep 05, 2019 6:03 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Sep 05, 2019 8:13 pm
Reply with quote

you can't
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Sep 05, 2019 8:36 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Thu Sep 05, 2019 9:59 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Sep 05, 2019 11:07 pm
Reply with quote

and to be clear - the INCLUDE process is done before the first program is run.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top