Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we pass the value of Symbolic parameter from File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 71
Location: India

PostPosted: Thu Sep 05, 2019 2:21 pm    Post subject: Can we pass the value of Symbolic parameter from File
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

Active Member


Joined: 29 Apr 2008
Posts: 636
Location: Maryland

PostPosted: Thu Sep 05, 2019 6:03 pm    Post subject:
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 User


Joined: 01 Sep 2015
Posts: 328
Location: Denmark

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

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

Senior Member


Joined: 21 Sep 2010
Posts: 2310
Location: NY,USA

PostPosted: Thu Sep 05, 2019 8:36 pm    Post subject:
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

Active Member


Joined: 29 Apr 2008
Posts: 636
Location: Maryland

PostPosted: Thu Sep 05, 2019 9:59 pm    Post subject:
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 User


Joined: 01 Sep 2015
Posts: 328
Location: Denmark

PostPosted: Thu Sep 05, 2019 11:07 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File transfer issue with end of line ... VINAY PALLELA TSO/ISPF 4 Thu Nov 14, 2019 12:01 am
No new posts File compare, where file has header a... VINAY PALLELA SYNCSORT 8 Thu Nov 07, 2019 5:05 pm
No new posts OMIT first and last column of a pipe-... karthikb_itpro DFSORT/ICETOOL 1 Fri Nov 01, 2019 8:24 pm
No new posts How to place name of the file where t... danielgp89 SYNCSORT 18 Thu Oct 17, 2019 12:55 am
No new posts Need help in parsing record in VBA file guptae DFSORT/ICETOOL 4 Fri Oct 11, 2019 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us