Chapter Contents |
Previous |
Next |
CLOSE |
Category: | SAS File I/O |
Syntax | |
Arguments | |
Details | |
Examples | |
See Also |
Syntax |
CLOSE(data-set-id) |
Details |
CLOSE returns 0 if the operation was successful, 0 if it was not successful. Close all SAS data sets as soon as they are no longer needed by the application.
Note: All data sets opened within a DATA step are closed automatically
at the end of the DATA step.
Examples |
%let payid=%sysfunc(open(payroll,is)); macro statements %if &payid > 0 %then %let rc=%sysfunc(close(&payid));
data _null_; dsid=open('mydata','i'); if dsid > 0 then do; ...more statements... end; run;
See Also |
Function:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.