I would change the code as this for debugging and readability:

if condition then
do;
var1=vara + varb;
var2= var1 * varc;
if var2 > chkpt then
do;
var3= var2 / 2;
var4= var3 + vard;
end;
end;