3.4. Defining Your Own Numeric Formats

The previous section showed how to create a user-defined format for a character variable. Creating a user-defined format for a numeric variable is similar, but you have a few more options. Start by selecting Data Create Format from the menu bar to open the Create Format window.

Create Format window

Select a Format type of Numeric. Then type a name for the new format in the Format name box. This name must be 32 characters or fewer in length, cannot start or end with a numeral, and can contain only letters, numerals, or underscores. This example shows a numeric format named HeightGroup being created.

Get The Little SAS® Book for Enterprise Guide® 4.1 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.