Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
File Access

Closing an External File

The CLOSEFILE statement closes files opened by an INFILE or a FILE statement. You specify the CLOSEFILE statement just as you do the INFILE or FILE statement. For example, the following statements open the external file USER.TEXT.CLASS for input and then close it:

   filename in 'user.text.class';
   infile in;
   closefile in;

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.