Generic way to get SAS Table metadata URI

前端 未结 2 1389
梦谈多话
梦谈多话 2021-01-24 06:12

I\'m building a utility that leverages the SAS metadata ID (or URI) of a table object. The following code works fine for getting the ID when the library uses the BASE engine:

2条回答
  •  遇见更好的自我
    2021-01-24 06:53

    The code in this article was extremely helpful for our SAS admins:

    http://support.sas.com/documentation/cdl/en/lrmeta/63180/HTML/default/viewer.htm#p1k9zipe59ha2an1pq34gu143lay.htm

    Example: Listing Libraries and Their Server Contexts

    This program uses the SAS metadata DATA step functions to return more detailed information about the libraries. The results are returned to a Libraries data set in the Work library. The requested data includes the library metadata ID, the library name, libref, engine, path on the file system (or if DBMS data, the DBMS path), and the server contexts to which the library is associated.

    It'll give you everything you want and more.

提交回复
热议问题