I'm using access to see these db2 tables, but they get updated or tables get added and i'd like to search the library ref by table name and update date.
Is this something proc contents will do? or something else?
I've got 9.12 on the PC running
thanks
gary
You might try reading the DB2 dictionary tables with explicit SQL passthrough. The code would look something like this (at the minimum, the items in CAPS will need to be modified):
proc sql; connect to db2(database=MYDB); select * from connection to db2 (select tabschema , tabname , create_time , stats_time from syscat.tables where tabschema = 'SCHEMA_NAME' order by typename); disconnect from db2; quit;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.