![]() Chapter Contents |
![]() Previous |
![]() Next |
| DNUM |
| Category: | Directory |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| nval=DNUM(directory-id); |
Type: Numeric
Type: Numeric
| Details |
You can use DNUM to determine the largest member number that can be passed to DREAD.
| Example |
Open the directory MYDIR, determine the number of members, and 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');
memcount=dnum(dirid);
rc=dclose(dirid);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.