Silverfrost Logo About Us | Contact Us
 
CLOSE

CLOSE

The CLOSE statement is used to disconnect a file which has been connected with OPEN. It has the following specifiers associated with it:

UNIT=<value>
<value> is the unit number. The keyword and equals sign are optional if this is the first specifier in the list.

IOSTAT=<variable>
<variable> specifies an integer variable into which the input/output status will be written. A positive value will be written on error, zero otherwise.

ERR=<label>
<label> specifies a label to jump to in the event of an error.

STATUS=<string>
<string> is either 'KEEP' or 'DELETE'. The default for named files is 'KEEP', for scratch files is 'DELETE'.

 

 

Copyright © 1999-2017 Silverfrost Limited