Language Reference |
closes a SAS data set
where SAS-data-set can be specified with a one-level name (for example, A) or a two-level name (for example, SASUSER.A). More than one SAS data set can be listed in a CLOSE statement.
The CLOSE statement is used to close one or more SAS data sets opened with the USE, EDIT, or CREATE statement. To find out which data sets are open, use the SHOW DATASETS statement; see also the section on the SAVE statement later in this chapter. IML automatically closes all open data sets when a QUIT statement is executed. See Chapter 6 for more information.
Examples of the CLOSE statement are as follows:
close mydata; close mylib.mydata; close; /* closes the current data set */
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.