September 2019
Beginner to intermediate
346 pages
7h 35m
English
To align the data, let's look at the basic Left and Right functions:
Data Align;Set Cars;Char_right=Right(Make);Num_left=Left(Year);Run;
The following output shows the aligned data:

Character variables are left-aligned and numeric variables are right-aligned by default. However, we created two new variables to make the character variable right-aligned and the numeric variable left-aligned. Alignment functions perform differently on the dataset, Output Delivery System (ODS), and title statements.
Read now
Unlock full access