Skip to content

Commit c36a98e

Browse files
authored
Update Create new column with the SELECT statement.sas
Signed-off-by: Stacey Syphus <[email protected]>
1 parent ec2a641 commit c36a98e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

By Syntax/DATA Step/Create new column with the SELECT statement.sas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/************************************************************************************************
22
CREATE NEW COLUMN WITH THE SELECT STATEMENT
33
This program illustrates how to use the SELECT statement in a DATA step to assign values to a
4-
given variable based on values of another variable or expression. This is an alternative to
5-
IF/THEN/ELSE syntax and may be preferred, especially when assigning many values. SELECT is
6-
similar to a CASE expression in a PROC SQL query.
4+
given variable based on values of another variable or expression. This is an alternative to
5+
IF/THEN/ELSE syntax and may be preferred, especially when assigning many values. SELECT is
6+
similar to a CASE expression in a PROC SQL query.
77
Keywords: DATA STEP, SELECT, calculated columns
88
SAS Versions: SAS 9, SAS Viya
99
Documentation: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=default&docsetId=lestmtsref&docsetTarget=p09213s9jc2t99n1vx0omk2rh9ps.htm

0 commit comments

Comments
 (0)