Chapter Contents |
Previous |
Next |
DOPTNAME |
Category: | Directory |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
attribute=DOPTNAME(directory-id,attribute-number); |
Type: Character
Type: Numeric
Type: Numeric
Details |
DOPTNAME works only if the directory was previously opened by the DOPEN function. The names and nature of directory information items vary depending on the operating system. The number of attributes that are available for a directory also varies depending on the operating system.
Example |
Open the directory identified by the fileref MYDIR, retrieve all system-dependent directory information items, write them to the SAS log, and then close the directory:
/* Assign the fileref MYDIR to the */ /* filename stored in the variable DIRNAME */ /* and open it. */ rc=filename('mydir',dirname); dirid=dopen('mydir'); numitems=doptnum(dirid); do j=1 to numitems; opt=doptname(dirid,j); put 'Directory information=' opt; end; rc=dclose(dirid);
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.