BookmarkSubscribeRSS Feed
MarcTC
Obsidian | Level 7
I would like to know how to convert an EG project to a plain SAS program.
5 REPLIES 5
NickT
Fluorite | Level 6
Hi Marc,

Creating a .sas file from your EG project is a simple task. From your EG menu:

File - Export - Export All Code.
Bibishan_Rathod
Calcite | Level 5

Hi ,

It is  possible to convert the .egp to .sas file when we have only read only access.

I follow the same steps but it gives the error. 

when when I follow the Process like Task-Export All code. It gives lots of macro code is there any way to extract only code.

AlanC
Barite | Level 11

Rename the EGP to a zip extension (ex. MyProject.egp ==> MyProject.zip). Examine the files. They are XML files and one of them will contain the SAS code.  

https://github.com/savian-net
yabwon
Onyx | Level 15

You can use the code form this one:

https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-list-all-programs-included-in-an-egp-fi...

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



Kurt_Bremser
Super User

Each project node has its own piece of code, and certain tasks (e.g. Copy Files or all Export/Import) can't be converted to code, as part of them is executed within EG and not the workspace server.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 5 replies
  • 3993 views
  • 2 likes
  • 6 in conversation