Returns the number of members in a directory.
is a numeric variable that specifies the identifier that was assigned when the directory was opened by the DOPEN function.
%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));
data _null_; rc=filename("mydir","physical-name"); did=dopen("mydir"); memcount=dnum(did); rc=dclose(did); run;