I am looking to skip block of code based on some condition. Like if user does not enter date in the parameter of macro the following code won't run. %macro test(final_File,date);
/*Other macro*/
/****I want to skip the following Code if user doesn't enter date in parameter*****/
insert into &final_File._checkpoints
set Checkpoints="Min Date",
Total_Count=(select Count(&date.) from &final_File.),
Date_Check=(select min(&date.) format date9. as min_date from &final_File.),
comment="Min date of record",
Update_Date=today();
run;
/*Other macro*/
%mend; same as we had in VBA, If date="" then goto xx:
Block of code which will be missed if condition matches here
xx:
run another code
... View more