Is there a way to obtain "the next valid free file number" when running SQR? In Visual Basic, we can use the code:
FileNumber = FreeFile ' Get unused file number.
Open "TEST.DAT" For Output As FileNumber
I'm writing a "common" routine that can be called by many SQRs, and I don't want to have to hard code the file number.
TIA,
Steven Ross
Applications Developer/Analyst
sross@kcm.org
sross11@mail.com