data table;
set table;
length state_full $8;
if state = 'KS' then state_full = 'Kansas';
else if state = 'CO' then state_full = 'Colorado';
else state_full = 'Other';
run;
Parameter | Details |
---|---|
variable(s) | variable(s) you wish to assign a length to |
$ | optional parameter that specifies if your variable is a character variable |
length | integer that specifies the length of the variable |