CLOSE

Closes a file that was previously opened by the READ or WRITE function. The CLOSE function is useful if you are concerned that the number of files that will be open will exceed the limitations of your system. In most situations you do not need to use the CLOSE command because system limits are normally high enough to handle the number of files in a job.

Syntax

CLOSE(filename)

Arguments

Argument Description Default
filename The name of the file you want to close. None

Results

Result Description
Return A null string ('').
%%RC 0 if successful.
%%RM A null string ('').
%%RV Always 0.

Examples

Function Call Return %%RC
CLOSE(‘data.txt’) 0 0