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.

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