Chapter Contents |
Previous |
Next |
Doing More with SAS/ASSIST Software |
In this section, you create a numeric format, COSTRNGE., that determines whether the cost of a house in the HOUSES table is low, medium, or high depending on the range in the format. You use this format in the following section, Altering the Properties of a SAS Table.
Additional Information |
For additional information about creating formats and informats, refer to "The FORMAT Procedure" chapter in the SAS Procedures Guide.
Instructions |
Tasks | Data Management | Design Format | Create formats |
Create Formats Window
COSTRNGE
as
the name of the format.
3
in The number of groups required field.
The number of groups indicates how many values or ranges you want to use for
the format.
Specify Format Ranges Window
You select Ranges because low, medium, and high cover a range of prices, not specific values.
1
as the From Value,
50000
as the To Value,
and
Low
as the Formatted Value.
For Group 2, type
50001
,
100000
, and
Medium
for the From Value, To Value, and Formatted Value, respectively.
For Group 3, type
100001
,
999999
,
and
High
for the From Value, To Value, and Formatted Value, respectively.
You can now use this format in the HOUSES table. In the following section, you use the Properties window to apply the COSTRNGE. format to the HOUSES table.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.