Him
I am receiving a log message "Character values have been converted to numeric values at the places given by" in my " do over _value;
" statement. This caused bc the dataset is empty. How do I fix this log message? thanks
data pfinal1;
merge tmerge_xl tmerge_xl3 ;
by ord1 aebodsys ;
if ord1 in (1 2) then do;
array _value ctrtg1 ctrtg2 ctrtg3 ctrtg4 call ;
do over _value;
if _value = "" then _value="0 (0.0%)";
end;
end;
run;
Set the variable LENGTH (and type) in the ARRAY statement.
array _value $20 ctrtg1-ctrtg4 call ;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.