Sample Topic 2: Variable Attributes

h

Hey there! Looks like you have not set up the training properly ūüôā

This training web page is designed to be open side-by-side with your SAS program.

Please see the instruction on how to set up the training.

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 lesson.


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:

Need some help?

Get Hint

Get Solution