SASUnit Examples  Version 1.5.0
nobs.sas
Go to the documentation of this file.
1 
26 %MACRO nobs(
27  data
28 );
29 %local dsid nobs;
30 %let nobs=;
31 %let dsid=%sysfunc(open(&data));
32 %if &dsid>0 %then %do;
33  %let nobs=%sysfunc(attrn(&dsid,nlobs));
34  %let dsid=%sysfunc(close(&dsid));
35 %end;
36 &nobs
37 %MEND nobs;