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: è gratuito e ti dà accesso anche a Willi, l'assistente AI, e a tutta la Knowledge Base.

Prova a chiederlo a Willi

Willi, l'assistente AI della community, risponde a queste domande usando questo articolo e le altre fonti Faq400. È gratuito: iscriviti e ricevi subito la risposta.

Chi legge questo, legge anche