BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sathya66
Barite | Level 11

Hi All,

 

I know only the column name(PART_NUMBER)  but not the table name. I have searched for the column name in SAS DI and I found it . when I try to see the properties but it is not let me see it. How can I find the table name based on column in SAS DI/SAS SMC. 

 

sathya66_0-1706110194298.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

You can use the Dictionary Tables for this:

proc sql;
  create table want as
  select *
  from dictionary.columns
  where libname = 'SASHELP'
  and upcase(name) = 'AGE';
quit; 

 

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

You can use the Dictionary Tables for this:

proc sql;
  create table want as
  select *
  from dictionary.columns
  where libname = 'SASHELP'
  and upcase(name) = 'AGE';
quit; 

 

sathya66
Barite | Level 11
Thanks, I tried this way already but I am looking at GUI.
carl_sommer
SAS Employee

Querying the DICTIONARY.COLUMNS table will only help find what has been physically allocated to your SAS session via libname assigments.

To query metadata, you can do this in SAS Managment Console through the following steps:

  • login to SAS Management Console as an identity that will be able to read the metadata you are looking for.
  • From the tabbed view in the left pane, select Search
  • Specify the column name and the operator (in my case I chose MAKE, with the Contains operator; note that the name is case-insensitive)
  • Clear all of the selected types, and then select Column
  • Select the Search button at the bottom of the pane

carl_sommer_0-1706635743262.png

 

  • In the results in right pane, select one of the matches
  • Right mouse on this selected column and choose Properties
  • Click on the Authorization tab
  • Select the Advanced button
  • This will display the (inverted) hierarchy of the column (i.e., the table and the folder hierarchy)
    Note that the library is not displayed

carl_sommer_1-1706635926484.png

 

 

Carl Sommer - SAS Technical Support

 

 

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 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 635 views
  • 3 likes
  • 3 in conversation