In reply to Sanja Jankovic.

You can ask SAS programming questions at the SAS Support Communities. Someone there might suggest that you use the SUM function in conjunction with the subsetting IF statement:

if sum(of x1-x4) = 20; /* keep rows for which sum(x1,x2,x3,x4)=20 */