On Tue, 18 May 2010 14:39:59 -0400, Dave Barry wrote: >The term to use is "uninitialized." It matters not what DSORG, etc. appears >in the catalog and/or VTOC entries. > DSORG matters. If the data set is SMS managed (or is it sufficient that SMS be active?) and DSORG is given in the "DD DISP=NEW,DSORG=PS,..." allocation will initialize the data set; no need for IEBGENER.
>I don't know if it still applies, but an uninitialized dataset opened for >input by a COBOL program would be automatically closed and reopened for >output. Other run-time environments are not as accomodating, however. > I'm astonished. How can COBOL tell whether a data set has been initialized? Is it that if an EOF is written, DS1LSTAR points to the second sector; if uninitialized to the first? What happens if the program attempts to read the data set now opened for output? >-----Original Message----- >From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of >Paul Gilmartin >Sent: Tuesday, May 18, 2010 11:07 AM >> >Depending on SMS, whether DSORG can be determined, etc. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

