Language Reference

CLOSEFILE Statement

closes an input or output file

CLOSEFILE files;

where files can be names (for defined filenames), literals, or expressions in parentheses (for pathnames).

The CLOSEFILE statement is used to close files opened by the INFILE or FILE statement. The file specification should be the same as when the file was opened. File specifications are either a name (for a defined filename), a literal, or an expression in parentheses (for a pathname). To find out what files are open, use the SHOW FILES statement. For further information, consult Chapter 7. See also the description of the SAVE statement. IML automatically closes all files when a QUIT statement is executed.

Examples of the CLOSEFILE statement follow:

  
    filename in1 'mylib.mydata'; 
    closefile in1;
 

  
    closefile 'mylib.mydata';
 

  
    in='mylib/mydata'; 
    closefile(in);
 

Previous Page | Next Page | Top of Page