The following error is revealed in the IDB2 r20 DC log at startup, but the problem does not occur when running the request in r19.
DBG03038E DB2S 07:45:18 THIS FIELD CANNOT BE USED IN DECLARE OR WHERE CLAUSE
CMD-TXT(,4,16) = '-DIS'
R20 introduced tighter controls over fields allowed to be used in a 'Where Clause' mostly relating to variable length fields, and in this case CMD-TXT.
Release : 20.0
Component : CA Insight Database Performance Monitor for DB for z/OS
There has been a change in r20 where stricter controls have been put in place for 'where clause' fields mostly relating to variable length fields which CMD-TXT happens to be one of them. A sound circumvention is being offered to correct this failure by using IFCID 91 "COMMAND" to report the end of the DB2 command execution instead of IFCID 90 "COMMAND-ST" reporting the start of the DB2 command. Attached, please find the modified UPDBASPR request to use for r20.
Here are the changes that were made:
Changed COMMAND-ST to COMMAND
Changed CMD-TXT to CMD-TXT-VAR field in WHERE clause (CMD-TXT-VAR is derived from CMD-TXT)
Changed the substring offset in the WHERE clause in your request:
CMD-TXT(,4,16) -> CMD-TXT-VAR(,4,14)
CMD-TXT(,4,3) -> CMD-TXT-VAR(,4,1)