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
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
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.
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
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.
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.
Ready to level-up your skills? Choose your own adventure.