Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



The OSCLOSE command closes a sequential file that was previously opened with the OSOPEN or OPENSEQ command. the command takes the general form:

OSCLOSE file.var [ON ERROR statements]


  • file.var Specifies the file to close.
  • ON ERROR statements Specifies statements to execute if the OSCLOSE statement fails with a fatal error because the file is not open, an I/O error occurs, or jBASE cannot find the file.

If the ON ERROR clause is not specified,  and a fatal error occurs, the program will enter the debugger. After execution of OSCLOSE, the STATUS function returns either 0 or a failure code.

it closes the file successfully.
Close failed.

An example of use is as: 


Go back to jBASE BASC.

Was this article helpful?