Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mf_nobs.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Returns number of logical (undeleted) observations.
4 @details Beware - will not work on external database tables!
5 Is just a convenience macro for calling <code> %mf_getattrn()</code>.
6
7 %put Number of observations=%mf_nobs(sashelp.class);
8
9 <h4> SAS Macros </h4>
10 @li mf_getattrn.sas
11
12 @param libds library.dataset
13
14 @return output returns result of the attrn value supplied, or log message
15 if error.
16
17
18 @version 9.2
19 @author Allan Bowe
20
21**/
22
23%macro mf_nobs(libds
24)/*/STORE SOURCE*/;
25 %mf_getattrn(&libds,NLOBS)
26%mend mf_nobs;