On Sun, 10 Jan 2021 14:34:03 +0200, Binyamin Dissen wrote:

>On Wed, 30 Dec 2020 19:21:52 +0000 Billy Ashton 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?
>
Gee.  One might create a collection of JCLLIB members mapping the
Cartesian product of all possible values of all possible symbols.  Then
no such member need contain any symbol references.

Seriously?  There's something wrong here.

I hate JCL!

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to