Learning More

Character variables
For information about expressions involving alphabetic and special characters as well as numbers, see Working with Character Variables.
DATA step
For general DATA step information, see Introduction to DATA Step Processing. Complete information about the DATA step can be found in the “DATA Step Concepts” section of SAS Language Reference: Concepts.
IF-THEN/ELSE statements
The IF-THEN/ELSE statements are discussed in Acting on Selected Observations.
LENGTH statement
Additional information about the LENGTH statement can be found in Working with Numeric Variables and Working with Character Variables. To show the effect of the LENGTH statement on variable storage using the DATASETS procedures, see

Get Step-by-Step Programming with Base SAS 9.4 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.