Syntax, LENGTH statement:
LENGTH variable(s) <$> length;
|
length Address1 Address2 Address3 $200;
Normal
, which
has six characters. Because TestLength is a character variable, you
must follow the variable name with a dollar sign ($).
data stress;
set cert.stress;
TotalTime=(timemin*60)+timesec;
retain SumSec 5400;
sumsec+totaltime;
length TestLength $ 6;
if totaltime>800 then testlength='Long';
else if 750<=totaltime<=800 then testlength='Normal';
else if totaltime<750 then TestLength='Short';
run;