CORE
mf_getvarformat.sas File Reference

Returns the format of a variable. More...

Go to the source code of this file.

Detailed Description

Returns the format of a variable.

Uses varfmt function to identify the format of a particular variable. Usage:

data test;
   format str $1.  num datetime19.;
   stop;
run;
%put %mf_getVarFormat(test,str);
%put %mf_getVarFormat(work.test,num);
%put %mf_getVarFormat(test,renegade);

returns:

$1.
DATETIME19.
NOTE: Variable renegade does not exist in test
Parameters
libdsTwo part dataset (or view) reference.
varVariable name for which a format should be returned
Returns
outputs format
Author
Allan Bowe
Version
9.2

Definition in file mf_getvarformat.sas.