Re: File Handles (was: COBOL to dynamic DD name)

2023-04-30 Thread Binyamin Dissen
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.

File Handles (was: COBOL to dynamic DD name)

2023-04-29 Thread Paul Gilmartin
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