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

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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