Chapter Contents |
Previous |
Next |
DCLOSE |
Category: | Directory |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
sysrc=DCLOSE(directory-id); |
0 | successful |
0 | not successful |
Type: Numeric
Type: Numeric
Details |
The DCLOSE function closes a directory that was previously opened by the DOPEN function. DCLOSE also closes any open members of the directory before closing the directory.
Example |
Open the directory to which the fileref MYDIR has previously been assigned, return the number of members, and then close the directory:
rc=filename('mydir','fname') did=dopen('mydir'); memcount=dnum(did); if (dclose(did)) then do; _msg_=sysmsg(); ...SCL statements to handle the error condition... end;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.