We do this all the time in the Syzygy Automation Suite. We typically scan the TIOT looking for any DDnames that start with SYZ* and if we find them we do different things based on what they are, also we allow SYZINnn and any number of SYSIN datasets which we dynamically create a DCB for inside the code and open them in the order they are numbered (0 through 99). It's not hard.
So there is a great benefit from it (for us). Brian On Wed, 30 Dec 2020 13:55:32 -0700, Lizette Koehler <stars...@mindspring.com> wrote: >So the question becomes, can your Program handle a constantly changing DD Name? > >What would be the benefit from doing this? > >In Cobol you predefine (If I am allowed to use this word) the IO Section. >Which specifies the DD name - consider that hard coded. > >I am not aware of any language construct that allows for a DD name to be >randomly selected in a program. On z/OS > >I would be interested if anyone has an example. > >And yes Scheduling products can supply symbolics where native z/OS might now. > >Could you provide an example where your program when it executes would use a >random DD name in JCL? > >Lizette > > > >-----Original Message----- >From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of >Billy Ashton >Sent: Wednesday, December 30, 2020 12:22 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Using symbolic DD names > >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? > >Billy > > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, send email to >lists...@listserv.ua.edu with the message: INFO IBM-MAIN > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN