Variable Attributes [1-17]
(Sample)
(Sample)
The 6 Attributes of SAS Variables
Each variable in SAS has 6 attributes (properties):
- Name
- Label
- Length
- Type
- Format
- Informat
How to review variable attributes?
The list of variable attributes can be found from the column properties.
Example
Locate the CARS data set from the SASHelp library.
Then click the arrow on the left of the data set to expand the variable list:
From the variable list, double click on the variable of interest:
The Column Properties will pop up with the list of variable attributes:
The variable EngineSize has the following attributes:
- Name: EngineSize
- Label: Engine Size (L)
- Length: 8
- Type: Numeric
There is no format and informat assigned to this variable.
Each of these attributes will be explained in full detail later in this module.
Exercise
Locate the FISH data set from the SASHelp library.
Open the Column Properties from the Species variable.
List the 6 attributes assigned to this variable
E.g.
Label:
Name:
Length:
Type:
Format:
Informat:
Locate the FISH data set from the SASHelp library.
Open the Column Properties from the Species variable.
List the 6 attributes assigned to this variable
E.g.
Label:
Name:
Length:
Type:
Format:
Informat:
Need some help?
HINT:
The variable Species is the fifth variable on the variable list.
Name: Species
Length: 9
Type: Char
There is no label, format and informat assigned to this variable.
Fill out my online form.