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
Amethyst | Level 16

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4814 views
  • 2 likes
  • 6 in conversation