![]() Chapter Contents |
![]() Previous |
![]() Next |
| DINFO |
| Category: | Directory |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| attribute=DINFO(directory-id,info-item); |
Type: Character
Type: Numeric
Type: Character
| 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 |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.