Posted by: Arrogant March 30, 2015
HELP w/ SAS
Login in to Rate this Post:     0       ?        
I don't have a SAS program to use right now but try something like this:


data try;
set yourdata; ******************** change the dataset name here;
array Tests[4] Test1-Test4;
do i =1 to 4;
if Tests(i) >=0 then do; **** this should exclude values with less than 0;
Score=Tests(i);
output;
end;
end;
keep name score;
run;
Read Full Discussion Thread for this article