> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of McKown, John
> Sent: Monday, April 14, 2008 10:55 AM
> To: [email protected]
> Subject: COBOL / VSAM question.
> 
> I don't like what we are doing, but since when did that matter?
> 
> We have a COBOL batch program which reads a VSAM file which is OPEN to
> cics. I am told that when we ran the program on the same z/OS image as
> the CICS region, that the OPEN got a FILE STATUS code of 00. We have
> split our single system into two images, in a basic sysplex. The
program
> is now getting a FILE STATUS code of 97. I would have expected this
even
> in a single system, if the file were open to another job in UPDATE
mode.
> In any case, I am asserting that all COBOL programs should check for
> both 00 and 97 on OPEN and proceed in either case. It has been so very
> long since I have looked at this that I want to be sure that I'm not
> blowing smoke. The VSAM SHAREOPTIONS are 2,3.

No smoke involved.  We have that here in many different programs, ALWAYS
check for BOTH '00' and '97'.  Or better yet (as someone else mentioned)
an 88 level on the FILE-STATUS identifier with both values.

HTH

Peter


This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.

----------------------------------------------------------------------
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

Reply via email to