Hi Guys,
I know its simple but just wondering why the below code in creating the metadata table is creating at database but not in my sas lib.
I ran the following user written code at DI
LIBNAME abc ORACLE;
data abc.want
set abc.have(obs=0);
run;
By this the table is created at database but metadata table is not created at DI.
Could some one let me know why it is not created. or any solution to create a metadata table in SAS DI with user written code.
Many thanks in advance.
Vicks
By default the tables wont be added to the metadata unless there is a separate process to auto refresh the metadata in your environment. The easiest way to update the table metadata would be to right click on the library from the DI and select import tables and then select the table from the list of tables . If you have the right permissions you should be able to add the table metadata to the library.
By default the tables wont be added to the metadata unless there is a separate process to auto refresh the metadata in your environment. The easiest way to update the table metadata would be to right click on the library from the DI and select import tables and then select the table from the list of tables . If you have the right permissions you should be able to add the table metadata to the library.
Just registering the physical table using DIS or SMC is what you normally would do.
If you really need to automate this then you could use Proc Metalib.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.