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: 541
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: 308
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: 2244
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: 541
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: 308
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 Search the strings present in ps file... Bhuvana Narasimhan All Other Mainframe Topics 8 Thu Aug 22, 2019 8:20 pm
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm
No new posts CICS VSAM file max volumes socker_dad JCL & VSAM 4 Tue Aug 20, 2019 1:28 am
No new posts Header and trailer for a PS file kumara kanthirava JCL & VSAM 5 Mon Aug 19, 2019 3:54 pm
No new posts Select based on a range from a differ... sergeyken SYNCSORT 2 Fri Aug 16, 2019 12:37 am

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