The OP isn't trying to retrieve the information; he's trying to open a file 
using a dynamic ddname. Put another way, he wants to open the same DCB multiple 
times, with a different DCBDDNAM each time.

________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Sri 
h Kolusu <skol...@us.ibm.com>
Sent: Friday, April 28, 2023 4:26 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: COBOL to dynamic DD name

>> I'm not trying to allocate the files. The JCL for the step has all the DDs. 
>> I just need to be able open, extend, and close the select/assign to 
>> different DDs where which ones I use and which order is not known until I'm 
>> working through an input file.

Michael,

As steve mentioned in earlier post , you can BPXWDYN2 to retrieve the info a 
dataset/ddname.

Here is an example

https://www.mvsforums.com/helpboards/viewtopic.php?p=62866#62866

Thanks,
Kolusu

----------------------------------------------------------------------
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

Reply via email to