I inherited an extensive SAS-program that uses a lot of Macro %if...%else, %do...%end etc. blocks.
Since it is not well formatted, it is very hard to understand what block includes what and which %end or %else belongs to which %if or %do. In most programming languages / IDEs, there is a way to click on an "if" and jump to the corresponding "else" or highlight it. Is this possible in SAS EG with macro code like %if and %else?
I already tried auto-formatting, but with limited success. Is there a way to visually highlight the corresponding %end of a %if / %do, or to click on the beginning %if of a block and jump to the corresponding %end ?
While in the SAS EG it is not possible to have what you want, but code formatting and with little effort your issue should be resolved.
You can format code in the SAS Enterprise guide using CTRL+I (OR Select EDIT in the main menu, then format code from drop down).
While in the SAS EG it is not possible to have what you want, but code formatting and with little effort your issue should be resolved.
You can format code in the SAS Enterprise guide using CTRL+I (OR Select EDIT in the main menu, then format code from drop down).
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.