Macro _EG_CONDITIONAL_DROPDS
%_eg_conditional_dropds(WORK.QUERY_FOR_ELIGIBILITY);
what is the purpose of this macro?
why do we need to write this code at the beginning of your code?
thanks
It drops the data set if it exists. This is to maintain the process integrity, makes sure that the process doesn't continue with data left over from previous run.
I don't think it has to be at the beginning of the code, but where makes sense from a programming perspective. If you clean up all at the beginning, that's not a bad thing either.
The code for the macro is here:
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.