|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Returns number of variables in a dataset. More...
Go to the source code of this file.
Useful to identify those renagade datasets that have no columns! Can also be used to count for numeric, or character columns
%put Number of Variables=%mf_getvarcount(sashelp.class); %put Character Variables=%mf_getvarcount(sashelp.class,typefilter=C); %put Numeric Variables = %mf_getvarcount(sashelp.class,typefilter=N);
returns:
Number of Variables=4
| [in] | libds | Two part dataset (or view) reference. |
| [in] | typefilter= | (A) Filter for certain types of column. Valid values:
|
Definition in file mf_getvarcount.sas.