BookmarkSubscribeRSS Feed
DavidGannon
Calcite | Level 5

We are looking for advice on using the relationship data that is stored in the postgres database.

 

This information is populated via the Relationship Loader (sas-relationship-loader).   We have used the Relationship Reporter (sas-relationship-reporter) successfully.

 

We have some specific reports we would like to develop that accessing the Postgres database would facilitate.

 

Has anyone used this metadata database? How did you connect to it? And are there example queries available?

 

5 REPLIES 5
JuanS_OCS
Amethyst | Level 16

Hello @DavidGannon,

 

what you are asking for - to access the WIP database to query the relationships, I believe it is not documented. For this purpose, I would rather ask the question to SAS Technical Support 9 (and/or wait here, perhaps a SAS employee can asnwer you the question). But please beware the SAS WIP database it is not intended to be queried for non-internal-SAS purposes, so also perhaps you won't get your answer. If you get this question answered, please let us know it, we feel curious!

 

I think it would be more interesting for you to use sas-relationship-reporter by exporting the data to a CSV file and create your own little datamart. (with the parameter -format CSV )

 

Something else it might help you: if you have SAS Visual Analytics, there is a process you can enable to get the reports out of the box: http://blogs.sas.com/content/sgf/2015/03/04/relationships-are-easy-for-sas-objects/ (and a SAS dataset that will be loaded into VA, and you can copy to a different location for your own purposes).

kellington
Calcite | Level 5

The challenge with the sas-relationship-reporter is that it does not have all the same exports available - without having to run "lots" of different exports/queries and then parsing and stitching the info back together.  The goal is to be able to have queries that simplify impact lineage reporting (initial sources and final targets - without all the intermediary steps), as well as do quality/standards reporting on tables and jobs that are being built in SAS DI.

The PostgreSQL tables *should* make this easier. 

JuanS_OCS
Amethyst | Level 16

Indeed.

FYI, if it takes too long to get the answer you need, you can always create the relationship tables by yourself with the BI Lineage plugin from the SAS Management Console. 

 

http://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#p14w0edwch53wdn1fior...

ToddVlk
Fluorite | Level 6

Has anyone been able to find / query against Postgre data base for relationships?

 

Thanks,

Todd

ToddVlk
Fluorite | Level 6

Were you able to query relationships directly?

 

Thanks,

Todd 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1484 views
  • 0 likes
  • 4 in conversation