You will get 97 no matter how you open the file. The 97 indicates that an implicit VERIFY was performed and was successful. You'll get a different FILE STATUS value if the file was damaged and cannot be opened (probably 90 or one of the 3x values).
Best regards, Ray > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Debbie Mitchell > Sent: Thursday November 10 2005 11:17 > To: [email protected] > Subject: Re: VSAM file status 97 in Cobol > > On Thu, 10 Nov 2005 13:27:35 -0500, Robert Sample > <[EMAIL PROTECTED]> wrote: > > >I think you answered the first question pretty good. If a > VSAM file is > >not closed properly, you'll get file status 97 when doing an > open in a > >COBOL program. > > > But, will the status 97 be returned regardless of whether the > file is opened for Input vs. Output/Update? > > Thanks for your help > ---------------------------------------------------------------------- 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

