A fix is available
APAR status
Closed as program error.
Error description
when there's a predicate in the VIEW and referencing the view in the query with different predicate, getting sqlcode -104
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All DB2 11 for z/OS users who use IBM DB2 * * Analytics Accelerator. * **************************************************************** * PROBLEM DESCRIPTION: SQLCODE -104 is issued when a query * * is accelerated and the query * * satisfies the following conditions: * * 1. The query references a view with * * UNION. * * 2. The query contains a local * * predicate which can prune one of * * the legs of UNION in the view. * **************************************************************** * RECOMMENDATION: * **************************************************************** SQLCODE -104 is issued when a query is accelerated and the query satisfies the following conditions: 1. The query references a view with UNION. 2. The query contains a local predicate which can prune one of the legs of UNION in the view. For example: CREATE TABLE T1(C0 INTEGER, C1 CHAR(5)); CREATE VIEW V1 (C0, C1 ) AS SELECT C0 , C1 FROM T1 WHERE C1 = 'A' UNION SELECT C0+1, C1 FROM T1 WHERE C1 = 'N' ; SET CURRENT QUERY ACCELERATION = ALL; SELECT COUNT(*) FROM V1 WHERE C1 ='A' FOR FETCH ONLY; ADDITIONAL KEYWORDS: IDAAV4R1/K IDAAV5R1/K IDAAV6R1/K SQLCODE104 SQLSQLVIEW SQLUNION SQLPRUNING
Problem conclusion
With the fix of PI79570, the query referencing View with UNION will be offloaded successfully.
Temporary fix
Comments
APAR Information
APAR number
PI79570
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-04-06
Closed date
2017-05-10
Last modified date
2017-06-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI47163
Modules/Macros
DSNXOBAC DSNXONZC
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
RB10 PSY UI47163
UP17/06/01 P F705
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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"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":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
02 June 2017