Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getattrn.sas File Reference

Returns a numeric attribute of a dataset. More...

Go to the source code of this file.

Detailed Description

Can be used in open code, eg as follows:

%put Number of observations=%mf_getattrn(sashelp.class,NLOBS);
%put Number of variables = %mf_getattrn(sashelp.class,NVARS);
Parameters
[in]libdslibrary.dataset
[in]attrCommon values are NLOBS and NVARS, full list in documentation
Returns
output returns result of the attrn value supplied, or -1 and log message if err.
Version
9.2
Author
Allan Bowe

Definition in file mf_getattrn.sas.