On 14 Apr 2008 07:56:24 -0700, in bit.listserv.ibm-main you wrote:

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


Very definitely, you should at least be checking for 00 and 97.
Depending on the files and any recent compiler changes, other
conditionally successful opens should be checked for.

Clark Morris, COBOL programmer analyst who has done systems
programming.

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