BookmarkSubscribeRSS Feed
mm84
Calcite | Level 5

Hi community,

 

Is there a way to obtain by code all tables of each flow in a SAS Enterprise Guide project?

 

For obtaining all fields of each table in a library I used:

 

PROC CONTENTS NOPRINT DATA=MYLIBRARY._ALL_ 
OUT=WORK.METADATA_MYLIBRARY;
RUN;

I need to obtain all table dependencies for each flow.

Thanks

5 REPLIES 5
CaseySmith
SAS Employee

Short answer...  no, there is not.

 

That said, EG project (.egp) files are zipped archives, which contain project.xml files that define the items in the EG project and their relationships.  Not a recommended, supported, nor easy approach as you would be getting into the "guts" (implementation details), but technically possible to identify the tables used in each flow in a project from the .egp file.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

mm84
Calcite | Level 5

@CaseySmith Thanks for your answer.

 

What we need to accomplish is a way to know when a table fails which are the dependent tables that are affected.

 

We have many flows in different epg projects, but if one table fails, how could you easily know which are the flows that you need to run again once you fix this table?

SASKiwi
PROC Star

I suspect here that any potential cure may be worse than the disease. What is the problem with running the project again from the start if you have run errors? At least that way you will get complete and clean logs to verify your processing.

mm84
Calcite | Level 5

Hi @SASKiwi ,

 

We have different layers, if the extraction of a table fails then we need to run 3 or 4 projects to get everything updated. It could be nice if it would be possible to know only the flows that are affected to re-run again.

 

Thanks,

SASKiwi
PROC Star

Running your processes in batch mode via a scheduler would give you a greater level of control. You can arrange so that if a "project" fails then following steps don't run. You can also use the SAS option SYNTAXCHECK to immediately stop processing any more data once an error occurs. In batch mode you get a full log all processes and it is very easy to locate errors (with simple text searches) and then to fix them.

 

Of course the down side is you would have to export your projects to SAS code to run in batch mode.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 5 replies
  • 1850 views
  • 0 likes
  • 3 in conversation