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 of how 2 wrongs can run correctly.

Mike

On 6/22/05, Ted MacNEIL <[EMAIL PROTECTED]> wrote:
> ...
> 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 programme, sub-routine, etc. that opens a file should (must) close it.
> 
> You can't leave artifacts around for callers to trip over.
> 
> (At least, that's what I was taught at the UoW in the 1970's)
> 
> -teD
> (The secret to success is sincerity.
> If you can fake that,
> you've got it made!)
> 
> ----------------------------------------------------------------------
> 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
> 


-- 
Mike

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