Wednesday, 14 October 2015

Data Step Tip: Alignment Option

Analignment specification can be coded in the PUT statement.

Code-L,-C,or-R after the format.

Example:

124 DATA _NULL_;
125 SET NAMES;
126 PUT @1 NAME $30. -C;
127 RUN;
KATIE
TERESA
STEVE
ANN


NOTE: There were 4 observations read from the data set WORK.NAMES.

No comments:

Post a Comment