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:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.