Subj : close file in REXX To : Bryan Rubingh From : Baden Kudrenecky Date : Fri Aug 04 2000 01:09 am Responding to Bryan Rubingh from 1928-08-02 concerning close file in REXX, on Os2prog Hi Bryan: BR> I've written a REXX program which reads one file, changes a few lines as BR> it reads and writes to a second file, doing the above one line at a BR> time. When it reaches the end of the first file, I want to copy the BR> second file (the one REXX created) to another location. I've tried just BR> doing: BR> copy file2 file3 BR> but I get an OS/2 error when running the program that file2 is in use. BR> Is there any way in REXX to close the file so that the OS can copy it? There is an OS/2 Rexx forum, but all that you have to do is explicitly close the file with a call to "rc = lineout('file')" This is documented in the Rexx IPF file. hasta luego, baden baden@unixg.ubc.ca http://baden.nu/ ___ X KWQ/2 1.2i X My mouse pad supports Java! --- Maximus/2 3.01 * Origin: T-Board (1:153/908) .