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: 34
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: 730
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

Senior Member


Joined: 29 Apr 2008
Posts: 2133
Location: USA

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: 3076
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 Starting a PROC with parameters from ... CLIST & REXX 6
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Passing containers on START command CICS 4
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
Search our Forums:

Back to Top