CORE
mf_getattrn.sas File Reference

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

Go to the source code of this file.

Detailed Description

Returns a numeric attribute of a dataset.

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
libdslibrary.dataset
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 error.
Version
9.2
Author
Allan Bowe

Definition in file mf_getattrn.sas.