Hello,
I received one EG program that has ~50 .sas code programs embedded. I can open each and do SAVE AS. Then %include.... But once I finish making changes, I still need to embed them back to the EG flow and send back.
Any way to include or refer to the embedded code programs as they are, edit them inside EG, save-as, without bothering any pointer to go outside the EG flow?
Thanks.
Jia Xin
Anything you want to %INCLUDE has to reside on the filesystem that the SAS process has access to.
Are this program pieces that are called repeatedly, or do you just have a sequence of the codes? The latter can be done within the process flow, without the need for %INCLUDE.
Anything you want to %INCLUDE has to reside on the filesystem that the SAS process has access to.
Are this program pieces that are called repeatedly, or do you just have a sequence of the codes? The latter can be done within the process flow, without the need for %INCLUDE.
Kurt,
Thank you. I am thinking the same way. Copy them into one super macro and include once. They are not called in sequential way, some repeatedly some not, in random combination kind of way. This centralized way has one simple benefit. Opening one macro after another simple makes me dizzy. I would rather scroll down who knows how many lines to finish all the editing.
It would be ideal if there is some syntax with %include like (I am just making it up) %include "#/* " meaning 'include all the macros listed with the driver .sas program. This does not work if some macros contain open steps like "if then; ". Luckily this set of macros on my hands all begin with %macro and end with %mend.
Jia Xin
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.