BookmarkSubscribeRSS Feed
JJP1
Pyrite | Level 9

How can i register the below mentioned tables using SAS DI studio.i tried to see under SASHELP library and i did not found tables and columns datasets that are under
dictionary library.please suggest
dictionary.tables
,dictionary.columns

 

3 REPLIES 3
ed_sas_member
Meteorite | Level 14

Hi @JJP1 

 

As far as I know, Dictionary.tables can only be accessed by running a PROC SQL.

You can also access a Dictionary table by referring to the PROC SQL view of the table that is stored in the Sashelp library.

e.g. SASHELP.Vtable

e.g. SASHELP.VColumn

 

Best,

JJP1
Pyrite | Level 9

 

i know under SASHELP library as these vtable and vcolumn and i can see this in SAS DI while regietering.
But i want to register tables,columns dataset from dictionary library.
any suggestion please

ErikLund_Jensen
Rhodochrosite | Level 12

Hi @JJP1 

 

There is a work-around. You can manually use proc SQL to create a view on the table in a permanent library, and then register the view and use it like it was the "real" dictionary table:

 

 

proc sql;
	create view dw1sasme.dict_table as
	select * from dictionary.tables;
quit;

 

view.gif

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1357 views
  • 1 like
  • 3 in conversation