Dear all,
I am requested to write some (one shot) user-written code in DI Studio to investigate a data quality issue. The customer has provided me with a .csv file which contains (among other things) the engine, libname, libref, directory (path), tablename and column name of the fields to be analyzed. When the engine is BASE I can easily recreate the libname statement programmatically from the information above, but when the engine is not BASE (Oracle, DB2, ODBC, ...) that does not work. Hence I'm wondering (and asking you) whether there is any way to programmatically retrieve the libname statement (metadata) corresponding to the libname, i.e. the libname statement I get when I right-click the library in the DI Studio environment.
Many thanks in advance!
Cheers
Anne.
Hello Anne,
Does this help??
Library - Extract metadata
https://communities.sas.com/t5/Administration-and-Deployment/Library-Extract-metadata/td-p/676885
Cheers,
Koen
Hello Anne,
Does this help??
Library - Extract metadata
https://communities.sas.com/t5/Administration-and-Deployment/Library-Extract-metadata/td-p/676885
Cheers,
Koen
Thank you Koen,
Exactly what I needed 😊!
Cheers
Anne.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.