ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to report on dynamic and static SQL history in Sysview for DB2


Article ID: 132160


Updated On:


Bind Analyzer for DB2 for z/OS SQL-Ease for DB2 for z/OS SYSVIEW Performance Management Option for DB2 for z/OS Plan Analyzer for DB2 for z/OS Subsystem Analyzer for DB2 for z/OS


In Sysview for DB2, dynamic and static SQL data collection is active ( IFCID 1041, 1043 and IQL-IFCID400 = YES). How can we report on this?   


Component: IDB2


With the collection of fcids 316, 317 and 401 enabled, and HIST-STAT-RECS having 316 and 401 specified, the unload process of the history files (UNLDTYP=ALL), will contain the SQL data for subsequent processing. The Batch Report Writer process can be used to report on this unloaded data (look at batch reports starting with BTDSQ* and BTSSQ*).