Display 26.1Associating an Informat and a Format with a Variable
raw data value $1,544.32
converted value1544.32
printed value$1,544.32
read with
COMMA9.2
informat
printed using
DOLLAR9.2
format
In the figure, SAS reads the raw data value that contains the dollar sign and comma. The
COMMA9.2 informat ignores the dollar sign and comma and converts the value to
1544.32. The DOLLAR9.2 format prints the value, adding the dollar sign and comma.
For more information about associating informats and formats with variables, see
“Associating Informats and Formats with Variables ” on page 801.
Concepts: FORMAT Procedure
Associating Informats and Formats with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.