Please enable JavaScript to view this site.

A-Shell Reference

CLOSE #ch

Parameters

ch is the file channel associated with the file when it was opened.

Comments

Closing a file releases any internal locks on it. It has no effect on external locking mechanisms such as XLOCK and FLOCK.

All open files are automatically closed at the end of a program.

Attempting to explicitly close a file channel which is not open generates ASB error #14 (I/O to unopened file). You can determine if a file channel is open by using the ERF(ch) function.