On 4 Aug 2007 07:18:48 -0700, in bit.listserv.ibm-main you wrote: >Suppose program 'A' is processing a VSAM file and abends in middle. What >happens to the VSAM file? Will it be closed automatically?
Our site had some purchased programs that included a called CoBOL program to handle VSAM requests. That program included checking for a valid return code - and passed back its own return code showing success or failure. But it assumed valid return codes had a "0" in column 1. What this meant was that the Return Code of "97" caused the calling program to Abend. But "97" is a good return, even if IBM did not follow standard Return Code conventions with it. "97" means the VSAM file was opened successfully - with a File integrity verified. The previous program aborted, leaving the VSAM file in an ambiguous state, so this program saw that it needed to do a integrity check. Our shop never did have any VSAM files except for KSDS, and those have gradually been replaced. In our old-style shop, modifying this call program requires every program that used it to be system and user tested, making fixing it too expensive. If it was a Web program, that wouldn't have been necessary, as OO has very different testing standards by necessity. ---------------------------------------------------------------------- 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