BookmarkSubscribeRSS Feed
UDcc123
Fluorite | Level 6
There's plenty of simple solutions to accomplish my task that I know of, so this is more of a theoretical question:

- In my E/G projects, I typically only save the .egp, not the embedded .sas code
- Ex: My New.egp project has 3 code nodes:
- "code1.sas", "code2.sas", "code3.sas"
- Basically, I want to run just code3.sas, but have a %include("code1.sas") within it. Is this possible without code1.sas being saved outside of the project?
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
In a Display Manager interactive session (also known as the SAS Windowing Environment), it is possible to "recall" and %INCLUDE previously submitted lines of code, as described in the documentation:
http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#/documentation/cdl/...

However, since all EG code is submitted via "batch" or non-interactive mode on a server, I'm not sure whether this feature of %INCLUDE will work for you.

I do not believe you can %INCLUDE code that might be in the .EGP file. But the EG experts will have to chime in on this front.

I do know that I have successfully used %INCLUDE in an EG code node by referencing previously saved code (a previously saved .SAS file).

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 861 views
  • 0 likes
  • 2 in conversation