Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getfmtname.sas File Reference

Extracts a format name from a fully defined format. More...

Go to the source code of this file.

Detailed Description

Converts formats in like $thi3. and th13.2 $THI and TH. Usage:

%put %mf_getfmtname(8.);
%put %mf_getfmtname($4.);
%put %mf_getfmtname(comma14.10);

Returns:

‍W $CHAR COMMA

Note that system defaults are inferred from the values provided.

Parameters
[in]fmtThe fully defined format. If left blank, nothing is returned.
Returns
The name (without width or decimal) of the format.
Version
9.2
Author
Allan Bowe

Definition in file mf_getfmtname.sas.