Returns a value using a specified format.
Category: | Special |
identifies the constant, variable, or expression whose value you want to reformat. The source argument can be character or numeric.
contains the SAS format that you want applied to the value that is specified in the source. This argument must be the name of a format with a period and optional width and decimal specifications, not a character constant, variable, or expression. By default, if the source is numeric, the resulting string is right aligned, and if the source is character, the result is left aligned. To override the default alignment, you can add an alignment specification to a format:
-L | left aligns the value. |
-C | centers the value. |
-R | right aligns the value. |
Restriction | The format. must be of the same type as the source, either character or numeric. That is, if the source is character, the format name must begin with a dollar sign, but if the source is numeric, the format name must not begin with a dollar sign. |