The following IF/THEN-ELSE statements execute a different PUT _ODS_ statement based on the specified conditions:


if (missing(business_phone)) then
   put _ods_ @3 home_phone;
else if (missing(home_phone)) then 
   put _ods_;
else
   put _ods_ / @3 home_phone;
run;