Returns the length of a variable. More...
Go to the source code of this file.
Uses varlen function to identify the length of a particular variable. Usage:
data test; format str $1. num datetime19.; stop; run; %put %mf_getVarLen(test,str); %put %mf_getVarLen(work.test,num); %put %mf_getVarLen(test,renegade);
returns:
1 8 NOTE: Variable renegade does not exist in test
libds | Two part dataset (or view) reference. |
var | Variable name for which a length should be returned |
Definition in file mf_getvarlen.sas.