I do this frequently in REXX:

Address ispexec 'VGET (ZSCREEN) SHARED'
ddname='$TRAP'zscreen
'ALLOC FI('ddname') UNIT(3390) DSO(PS) RECFM(V B) LRECL(255) NEW DEL REU'
'EXECIO 'trap.0' DISKW 'ddname' (FINI STEM TRAP.'

Dana


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

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