Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-24 Thread Shmuel Metz (Seymour J.)
In <[EMAIL PROTECTED]>, on 06/23/2005 at 11:04 AM, Rolf Ernst <[EMAIL PROTECTED]> said: >the question is to which lengths COBOL goes to determine which files >were opened. No, the question is to what lengths a program should go in an attempt to work around a broken subroutine; the issue would

Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Clark Morris
On 23 Jun 2005 09:04:13 -0700, in bit.listserv.ibm-main you wrote: >Clark, > >the question is to which lengths COBOL goes to determine which files >were opened. Since you indicated the files were opened (and not closed) >by a BAL subroutine, the COBOL code may not even be aware of it. It does >

Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Joel C. Ewing
My recollection [perhaps faulty after all these years] is that when the SC03 Abend was first introduced that there was auto-close capability at the job step task termination level that was independent the programming language. The IEC999I message that indicates that a DEB could not be properly

Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Mike Bell
The origional statement was that a different program calling the subroutine didn't have the abend. If the different program was also ASM and didn't clean up modules loaded or was linked as a static call, then the storage would still be available for the system to close the ACB. sort of an example

Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Ted MacNEIL
... Since you indicated the files were opened (and not closed) by a BAL subroutine, the COBOL code may not even be aware of it. ... My Mother used to say: You use it; you clean it. Put it back where you got it from. Always wear clean underwear, in case you get hit by a bus. The point is: A prog

Re: CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Rolf Ernst
Clark, the question is to which lengths COBOL goes to determine which files were opened. Since you indicated the files were opened (and not closed) by a BAL subroutine, the COBOL code may not even be aware of it. It does take a bit of poking around to find the DECBs anyhow. However, since yo

CLOSING of files OPEN at program exit. Re: Help on SC03 abend

2005-06-23 Thread Clark Morris
On 22 Jun 2005 15:56:11 -0700, in bit.listserv.ibm-main you wrote: >If my old addled brain is thinking correctly, I believe over 10 years ago >IBM decided to no longer be nice to programs and require that all programs >close any files they open. And if they did not close them, the system would >t