EPG1V2_Summary of Lesson 4_ Preparing Data
EPG1V2_Summary of Lesson 4_ Preparing Data
DATA output-table;
SET input-table;
RUN;
DATA output-table;
SET input-table;
WHERE expression;
RUN;
DATA output-table;
SET input-table;
FORMAT col-name format;
RUN;
DATA output-table;
SET input-table;
new-column = expression;
RUN;
The name of the column to be created or updated is listed on the left side of the equals sign.
SAS automatically defines the required attributes if the column is new – name, type, and length.
The length of a new character column is determined based on the length of the assigned string.
DATA output-table;
SET input-table;
new-column=function(arguments);
RUN;
Character functions:
Conditional Processing
Copyright © 2023 SAS Institute Inc., Cary, NC, USA. All rights reserved.