Knowledge Base

Blog Faq400

Explore data areas with SQL

blog
Last Updated on 22 March 2020 by Roberto De Pedrini MarkOne’s suggestions – n. 6 In the large list of functions and views of the DB2 for i Service family, there are some that allow you to manage data area objects (* DTAARA) through SQL statements. Index Toggle List the data areas To obtain a list of the data areas present in a library, you can use the OBJECT_STATISTIC S table function : select OBJNAME "Name", OBJTEXT "Description", OBJOWNER "Owner", timestamp (OBJCREATED, 0) "Creation date / time", timestamp (CHANGE_TIMESTAMP, 0) "Date / time last mod.", timestamp (LAST_USED_TIMESTAMP, 0 ) "Last use date / time", DAYS_USED_COUNT "Use day" from table (QSYS2 / OBJECT_STATISTICS ('QUSRSYS', '* …

Riservato agli iscritti

Per leggere l'articolo completo serve un account Faq400. È gratis, e con lo stesso account fai domande a Willi e leggi tutto l'archivio.

Prova a chiederlo a Willi

Willi risponde usando questo articolo e gli altri contenuti di Faq400, e ti dice da dove prende ogni frase. Serve un account: è gratis.

Chi legge questo, legge anche