On Wed, 30 Dec 2020 19:21:52 +0000 Billy Ashton <[email protected]>
wrote:
:>Hey folks! I have a vendor product program that looks for different
:>DDnames depending on the control statements passed into the program. Is
:>there any way to define a dynamic DD statement using JCL symbols? For
:>example, I would love to have //TB&tno.DAT to correspond to TB01DAT,
:>TB14DAT, or TB67DAT if I use SET TNO=01 or 14 or 67.
:>Is such a thing possible? I tried using an instream proc definition and
:>INCLUDE MEMBER= that proc name, but that failed, and of course, I tried
:>the straight up JCL as above, and it failed.
:>What do you all think?
If you create a member for each DD statement,
// INCLUDE MEMBER=TAB&NO
should work fine. Or am I missing something?
//BLIP PROC
//BLIP1 EXEC PGM=IEFBR14
// INCLUDE MEMBER=TABN&SFX
// PEND
//S1 EXEC BLIP,SFX=05
++BLIP PROC
++BLIP1 EXEC PGM=IEFBR14
++ INCLUDE MEMBER=TABN&SFX
IEFC653I SUBSTITUTION JCL - MEMBER=TABN05
XXTABN05 DD DUMMY
--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN