In reply to Scott Bass.

Similar type syntax is available for SAS Viya 3.0. You can use macro %IF/%THEN/%DO now in open code, for example:

%if &myvar=1 %then %do;
data foo;set bar;run;
%end;
%else %do;
%put "myvar is not equal 1";
%end;