Creating Variable/Column- We have to write a equation to create a new Variable/ Columns.
L.H.S(Left hand side)=R.H.S(Right hand side)
LHS part should be the variable/column name which we wants to
create. RHS Part has to be a logic or value.
Example-
Data a;
set sasuser.admit;
x=5;
age_m=age*12;
run;
L.H.S(Left hand side)=R.H.S(Right hand side)
LHS part should be the variable/column name which we wants to
create. RHS Part has to be a logic or value.
Example-
Data a;
set sasuser.admit;
x=5;
age_m=age*12;
run;