For Programmers: Free Programming Magazines  


Home > Archive > Cobol > July 2005 > Re: Called Module with File Access - where to Close









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Called Module with File Access - where to Close
jce

2005-07-25, 10:01 pm

This is the solution offered to allow for "dynamically sized linkage" are
also.
It's probably what I will do when I get back to it...something feels
inherently wrong about not closing a resource - it doesn't matter how
unlikely any fallout is.

Thanks to all on the thread....I consider this a response to all :-).

JCE

"Richard" <riplin@Azonic.co.nz> wrote in message
news:1121757307.788730.83740@f14g2000cwb.googlegroups.com...
>
> Put a flag File-State PIC X VALUE SPACE in W-S. Test this on each entry
> and open the file if this is not set. ie automatically open the file.
> If the routine is CANCELed the file will be closed and the flag reset.
>
> Usually I have a 'function' parameter that I pass to the file routines
> and the 'X' function is to close the file and unset the file-state
> flag.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com