BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fierceanalytics
Obsidian | Level 7

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

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

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.

fierceanalytics
Obsidian | Level 7

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 860 views
  • 0 likes
  • 2 in conversation