SAS Component Language Dictionary |
Category: | Directory |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
attribute=DINFO(directory-id,info-item); |
contains the value of the information item, or a blank if info-item is invalid.
is the identifier that was assigned when the directory was opened. If directory-id is invalid, the program halts.
Details |
DINFO returns the value of a system-dependent directory parameter. The available information varies according to the operating system. See the SAS documentation for your host operating system for information about system-dependent directory parameters.
Use DOPTNAME to determine the names of the available system-dependent directory information items. Use DOPTNUM to determine the number of directory information items available.
Example |
Open the directory MYDIR, determine the number of directory information items available, and retrieve the value of the last item:
/* Assign the fileref MYDIR to the */ /* pathname stored in the variable */ /* or entered in the DIRNAME field and open it.*/ rc=filename('mydir',dirname); did=dopen('mydir'); numopts=doptnum(did); foption=doptname(did,numopts); charval=dinfo(did,foption); rc=dclose(did);
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.