COBOL does NOT demand a DSNAME. It is perfectly happy with DDNAMEs.
There were extensions to COBOL to allow a DSNAME via a system variable by
playing with the SELECT statement.
Of course, one could ask if the dsname is already in a system variable, why
not supply it in the JCL. But I digress.
On Fri, 28 Apr 2023 19:37:39 +, Schmitt, Michael wrote:
>I know how to have a COBOL program on z/OS use a data set name that isn't
>determined until runtime, via an environment variable. My question is can you
>use one file (i.e. one select/assign and one FD) to write to different DD