It would be more useful to post your SAS-generated log with your 'executed code' revealed, rather than just the program statements itself -- the info posted is useful to a point.
First off, the line below would normally generate a SAS ERROR (rather than generating some warnings or curious SAS notes):
array ress[4] r1-r4;
do i = 1 to 4;
ress = 0;
end;
Here's the error:
ERROR: Illegal reference to the array RESS.
There is no reason to have the assignment statement for "RESS" -- the DO loop is not needed.
Also, SAS numeric variables cannot be operated on when they have a missing value condition in some conditions -- your IF / THEN
; statement needs to be revised to use the SUM(R1,1); construct, as one example.
Scott Barry
SBBWorks, Inc.