A fix is available
APAR status
Closed as program error.
Error description
Offloaded query receives sqlcode901 from Analytics Accelerator with: ERROR: Function 'TRUNC(VARCHAR, INT4)' does not exist.
Local fix
Sample query: SELECT LASTNAME FROM DSN8B10.EMP EMPTB WHERE (EMPTB.EDLEVEL = IFNULL( ? , EMPTB.EDLEVEL )) WITH UR; DSN8B10.EMP.EDLEVEL is SMALLINT parameter marker has set a char datatype and value NULL => ERROR: Function 'TRUNC(VARCHAR, INT4)' The circumvention is, to keep parameter marker datatype the same as the column datatype is in Db2. So here, keep it SMALLINT + NULL works.
Problem summary
**************************************************************** * USERS AFFECTED: Users of accelerated queries * **************************************************************** * PROBLEM DESCRIPTION: The processing of an offloaded query * * leads to sqlcode -901 accompanied by * * error message: 'ERROR: Function * * 'TRUNC(VARCHAR, INT4)' does not exist.' * **************************************************************** * RECOMMENDATION: APPLY CORRECTIVE SERVICE * **************************************************************** The processing of an offloaded query leads to sqlcode -901 accompanied by error message: 'ERROR: Function 'TRUNC(VARCHAR, INT4)' does not exist.'
Problem conclusion
The problem has been fixed.
Temporary fix
Comments
APAR Information
APAR number
PH02074
Reported component name
IDAA FOR ZOS
Reported component ID
5697AQT00
Reported release
510
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-08-23
Closed date
2019-01-30
Last modified date
2019-03-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
AQTENV
Fix information
Fixed component name
IDAA FOR ZOS
Fixed component ID
5697AQT00
Applicable component levels
R510 PSY UI61027
UP19/02/04 P F902
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"510","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 March 2019