CORE
mf_getvarcount.sas File Reference

Returns number of variables in a dataset. More...

Go to the source code of this file.

Detailed Description

Returns number of variables in a dataset.

Useful to identify those renagade datasets that have no columns!

  %put Number of Variables=%mf_getvarcount(sashelp.class);

returns:

Number of Variables=4

Parameters
libdsTwo part dataset (or view) reference.
Version
9.2
Author
Allan Bowe https://github.com/macropeople/macrocore

Definition in file mf_getvarcount.sas.