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

passing symbolic parameters through dataset


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

New User


Joined: 13 Mar 2014
Posts: 32
Location: USA

PostPosted: Thu Nov 25, 2021 5:14 pm
Reply with quote

I have a dataset contents of which are 2 dataset names.
I want to use these dataset names in another JCL as input dataset 1 and 2.
Any suggestions on how this can be achieved?
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 512
Location: Denmark

PostPosted: Thu Nov 25, 2021 8:39 pm
Reply with quote

It depends on how they appear. If they are like a JCL SET statement and they are in a pds member then you can use the JCLLIB statement to allocate the dataset and the INCLUDE statement to, well, include them.
Otherwise you have to use some sort of program to read the dataset and generate the JCL. You could do it in an ISPF skeleton through a )REXX block.
Or use a TSO REXX batch step to allocate the datasets and run the program needing those datasets.
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1231

PostPosted: Fri Nov 26, 2021 9:02 pm
Reply with quote

shreya19 wrote:
I have a dataset contents of which are 2 dataset names.
I want to use these dataset names in another JCL as input dataset 1 and 2.
Any suggestions on how this can be achieved?

The most correct approach should be: avoiding the pass of DSNAMEs via another dataset. This is a non-mainframe ideology, it adds no benefits except disadvantages to the whole project.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Tue Nov 30, 2021 6:18 pm
Reply with quote

One way to do this -
ibmmainframes.com/about33612.html
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 Multiple find/replace on the same dat... DFSORT/ICETOOL 4
No new posts Is it possible to allocate DA dataset... All Other Mainframe Topics 5
No new posts passing stem variable with VPUT/VGET ... CLIST & REXX 6
No new posts Map VSAM Dataset to a Table/Tablespace DB2 5
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
Search our Forums:

Back to Top