PillarSoft

http://www.pillarsoft.net/os-2-software/rexx/closing-files-beginning-level.shtml

Closing Files (Beginning level)

Contributed by: Doug Rickman, Global Hydrology and Climate Center, MSFC, NASA

This is aimed at beginning REXX users.


 


/*****************************************************************************/
/**************************** File Control  **********************************/

/* You should make a point of releasing the input and output files as soon as*/
/* practical.  This way when you open files repeatedly in a script you don't */
/* run out of handles.                                                       */

/* Remember, before a file can be deleted it must be released!!!!            */

ex.
rc=lineout('filename')   
rc=stream('filename','c','close')