![]() Chapter Contents |
![]() Previous |
![]() Next |
| DNUM |
| Category: | External Files |
| Syntax | |
| Argument | |
| Details | |
| Examples | |
| Example 1: Using DNUM to Return the Number of Members | |
| Example 2: Using DNUM within a DATA Step | |
| See Also | |
Syntax |
| DNUM(directory-id) |
| Details |
You can use DNUM to determine the highest possible member number that can be passed to DREAD.
| Examples |
This example opens the directory MYDIR, determines the number of members, and closes the directory:
%let filrf=MYDIR; %let rc=%sysfunc(filename(filrf,physical-name)); %let did=%sysfunc(dopen(&filrf)); %let memcount=%sysfunc(dnum(&did)); %let rc=%sysfunc(dclose(&did));
This example creates a DATA step that returns the number of members in a directory called MYDIR:
data _null_;
rc=filename("mydir","physical-name");
did=dopen("mydir");
memcount=dnum(did);
rc=dclose(did);
run;
| See Also |
| Functions:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.