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

Hi,

Is there a way to identify the SAS-EG code that opens a given dataset? We have a few core datasets that we want to update the structure of. Therefore we need to know any SAS-EG code that references this dataset so that we can update that code to prevent errors.

I'd like to be able to search the folders listed under Servers->Files within SAS-EG. Failing this, any other way to search folders that contain .epg or .sas files. Thanks. - Martin

1 ACCEPTED SOLUTION

Accepted Solutions
AlanC
Barite | Level 11

Same answer I just posted elsewhere:

 

SAS egp files are actually zips of XML data. Read in the egp using a zip library, find what you need and write it out to a file.

 

This stuff is best done in another language due to strong library support for zip and XML. I prefer C# but use whatever you want (python, for example).

 

Alan

https://github.com/savian-net

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

What is your company's policy on EGP and EG program file storage locations? If users are storing these on their own hard drives or personal folders then finding them will be near impossible. 

Martin_Bryant
Quartz | Level 8
All of these are stored on a SAS server. We can't save locally.
AlanC
Barite | Level 11

Same answer I just posted elsewhere:

 

SAS egp files are actually zips of XML data. Read in the egp using a zip library, find what you need and write it out to a file.

 

This stuff is best done in another language due to strong library support for zip and XML. I prefer C# but use whatever you want (python, for example).

 

Alan

https://github.com/savian-net
Doc_Duke
Rhodochrosite | Level 12

This may not be viable, depending on how many EG projects you have, but you could run the project and store the log(s).  Then you can just use text search tools to find the datasets referenced in the logs.

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

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
  • 4 replies
  • 2160 views
  • 1 like
  • 4 in conversation