My survey data variables take 0, 1, 2,3 ... values and I have to change them to 1, 2, 3, 4 values (see attached first 10 obs data). It will help eliminate zero values to facilitate further analyses. Error log from below code is: ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant, a missing value, iterator, (. ERROR 76-322: Syntax error, statement will be ignored. data want; set have;
array inc {*} _numeric_;
do i = 1 to dim(inc);
if inc{i} in (_all_) then inc{i} = _all_+1;
end;
run; I apprceiate any hints. Thanks.
... View more