The DD name is passed by the caller and moved into the DCB. It is a "fixed" name that is always the same but this subroutine was written to be more flexible than that. (I did say "the DDNAME is moved in before the open" in the OP.)
I wonder about the "open twice." I indicated that this is a complex situation that is only partially under my control and that I only partially understand. I wonder if the code is getting re-entered, producing the failure situation. That's a good suggestion. Thanks. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Hunkeler Peter (KIUK 3) Sent: Monday, October 16, 2006 11:01 PM To: [email protected] Subject: Re: OPEN RC=8 with no messages >PRINTDCB DCB DSORG=PS,MACRF=(PM),RECFM=VBA,LRECL=137, + > EXLST=DUMMYADR,EROPT=ACC,DCBE=PRDCBE > >PRDCBE DCBE RMODE31=NONE, + > SYNAD=DCBSYNEX I'm missing the DDNAME parameter on the DCB. Does this mean you let DYNALLOC assing one for you and you then move it to the DCB before the OPEN? If so, any chance something is wrong with this code? Any chance you're trying to open the data set twice? That is one of the reasons you might get RC=8. ---------------------------------------------------------------------- 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

