Sorting Data In Insight HTIDBSQL Panel

book

Article ID: 103415

calendar_today

Updated On:

Products

CA Bind Analyzer for DB2 for z/OS CA Detector CA SQL-Ease for DB2 for z/OS CA Sysview Performance Management Option for DB2 for z/OS CA Database Detector for DB2 for z/OS CA Plan Analyzer for DB2 for z/OS CA Subsystem Analyzer for DB2 for z/OS

Issue/Introduction

While displaying SQL History in HTIDBSQL, the command SORT 5 D (TotalElapsed Time) didn't sort the data in descending order as expected. the statement with 205 minutes is listed after the statement with 24 minutes. The  expectation is for the 205-minute statement to be listed first.

Environment

Release:
Component: CIDB

Resolution

The sorting feature is normally using binary (raw) data. The HTIDBSQL request and few others are using formatted data. Because of formatting of the time interval field, there was an attempt to compare hundreds with tens of minutes and it causes that 24 minutes was higher than 205 minutes. It can be fixed by changing the formatting in requests HTIDBSQL and HTUDSQL.  Change print format of STMT-ELAPSED field from ' MM:SS.TTTT' to 'H:MM:SS.TTT'.  for HTIDBSQL and  SUM(STMT-ELAPSED) field from ' MM:SS.TTTT' to 'H:MM:SS.TTT'. for request HTUDBSQL