IBM Support

SI78982 - OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 CPD4302 F/QQQVFM

PTF Cover Letter


PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 CPD4302 F/QQQVFM


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
PRE  5770SS1  V7R3M0    SI70930   00/00    0000
PRE  5770SS1  V7R3M0    SI67724   00/00    0000
PRE  5770SS1  V7R3M0    SI68007   00/00    0000
PRE  5770SS1  V7R3M0    SI64030   00/00    0000
PRE  5770SS1  V7R3M0    SI63449   00/00    0000
PRE  5770SS1  V7R3M0    SI63438   00/00    0000
PRE  5770SS1  V7R3M0    SI62038   00/00    0000
PRE  5770SS1  V7R3M0    SI60057   00/00    0000
CO   5770SS1  V7R3M0    SI72117   00/00    0000
CO   5770SS1  V7R3M0    SI71079   00/00    0000
CO   5770SS1  V7R3M0    SI67739   00/00    0000
CO   5770SS1  V7R3M0    SI68410   00/00    0000
CO   5770SS1  V7R3M0    SI67883   00/00    0000
CO   5770SS1  V7R3M0    SI67229   00/00    0000



NOTICE:
-------
Application of this PTF may disable or render ineffective programs that
use system memory addresses not generated by the IBM translator,
including programs that circumvent control technology designed to limit
interactive capacity to purchased levels.  This PTF may be a prerequisite
for future PTFs.  By applying this PTF you authorize and agree to the
foregoing.

This PTF is subject to the terms of the license agreement which
accompanied, or was contained in, the Program for which you are obtaining
the PTF.  You are not authorized to install or use the PTF except as part
of a Program for which you have a valid Proof of Entitlement.

SUBJECT TO ANY WARRANTIES WHICH CAN NOT BE EXCLUDED OR EXCEPT AS EXPLICITLY
AGREED TO IN THE APPLICABLE LICENSE AGREEMENT OR AN APPLICABLE SUPPORT
AGREEMENT, IBM MAKES NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON INFRINGEMENT,
REGARDING THE PTF.

The applicable license agreement may have been provided to you in printed
form and/or may be viewed using the Work with Software Agreements (WRKSFWAGR)
CL command.





APAR Error Description / Circumvention

-----------------------------------------------
A SELECT statement which uses the HTTPCLOBVERBOSE function in a
SQLRPGLE program fails with:
...
MSGCPD4302 F/QQQVFMT MOD/QQQVFMT PROC/QQQSNDPMSG INST/1532
T/QSQRUN3 MOD/QSQSFIRT PROC/CRTACCESSPLAN INST/11981
Field HVR00003 not found in file *N in *N.
Cause . . . . . : Field HVR00003 for derived field DF0002 from
query format FORMAT0002 could not be found in file *N in library
*N format *N join reference 0.
MSGSQL0901 F/QSQRUN2 MOD/QSQFETCH PROC/CK_DEBUG INST/24504
T/QSQRUN2 MOD/QSQFETCH PROC/CK_DEBUG INST/24504
Cause . . . . . : An SQL system error has occurred. The previous
message identifier was CPD4302. Internal error type 5529 has
occurred.
...

The problem occurs whenever at least one host variable is used
in the SYSTOOLS.HTTPCLOBVERBOSE select.
It works fine when literals are used.

CORRECTION FOR APAR SE75791 :
-----------------------------
The handling of host variables used in a table function in the
sub-select of the insert of a select-from-insert statement has
been corrected, and this error no longer occurs.

CIRCUMVENTION FOR APAR SE75791 :
--------------------------------
None.


DESCRIPTION OF PROBLEM FIXED FOR APAR SE77403 :
-----------------------------------------------
An SQL0204 F/T QSQXCUTE will incorrectly be generated when
creating an SQL procedure or function if using three part naming
to create the object on a remote RDB, the specified target
library does not exist on the local system, and the target
library has a long name (more than 10 characters).

Example:
create function
<remote_RDB_name>.<long_target_library_name>.<function_name> (a
int) returns int return 1;

An SQL0204 F/T QSQXCUTE will incorrectly be generated when
creating an SQL variable if using three part naming to create
the object on a remote RDB and the specified target library does
not exist on the local system, whether the target library has a
long or short name.

Example:
create variable
<remote_RDB_name>.<target_library_name>.<variable_name> int;

CORRECTION FOR APAR SE77403 :
-----------------------------
The target library resolution with three part naming has been
corrected, the MSGSQL0204 will no longer be generated, and the
statements will now complete successfully.

CIRCUMVENTION FOR APAR SE77403 :
--------------------------------
None.


DESCRIPTION OF PROBLEM FIXED FOR APAR SE76759 :
-----------------------------------------------
An MSGSQL7008 may be incorrectly generated during an SQL
precompile from a CREATE TRIGGER statement in an EXEC SQL
statement within the source which may cause the SQL precompile
process to fail.

CORRECTION FOR APAR SE76759 :
-----------------------------
The error handling has been corrected, and the MSGSQL7008 will
no longer be incorrectly generated during the SQL precompile
process.

CIRCUMVENTION FOR APAR SE76759 :
--------------------------------
None.


DESCRIPTION OF PROBLEM FIXED FOR APAR SE77404 :
-----------------------------------------------
Errors may be incorrectly generated when using non-matching
corresponding column names across UNIONs within SQL statements.

Some examples include selecting a result column name from a
derived table that uses an AS name across UNIONed selects for
the derived table, which will result in an SQL0206 F/T QSQPREP
for COLUMN NOT FOUND:

select c1 from (
select a1 as c1 from <table_name1>
union
select b1 from <table_name2>) dt;

Using a result column name in the ORDER BY list that uses an AS
name across UNIONed selects, which will result in an SQL0208 F/T
QSQPREP for COLUMN NOT IN RESULT TABLE:

select a1 as c1 from <table_name1>
union
select b1 from <table_name2>
order by c1;

Using non-matching column names across UNIONed selects in a
CREATE TABLE AS statement, which will result in an SQL0153 F/T
QSQCRTT for COLUMN LIST REQUIRED:

create table <new_table_name> as (
select a1 from <table_name1>
union
select b1 from <table_name2>)
with no data;

Using non-matching column names across UNIONed selects in a
CREATE VIEW statement, which will result in an SQL0153 F/T
QSQCRTV for COLUMN LIST REQUIRED:

create view <new_view_name> as (
select a1 from <table_name1>
union
select b1 from <table_name2>);

CORRECTION FOR APAR SE77404 :
-----------------------------
These restrictions have been removed, the errors will no longer
be incorrectly generated, and the statements will now complete
successfully.

CIRCUMVENTION FOR APAR SE77404 :
--------------------------------
None.


Activation Instructions


None.




Special Instructions


None.


Default Instructions

THIS PTF CAN BE APPLIED IMMEDIATE OR DELAYED.



Supersedes

PTF/FIX NO(S).  APAR TITLE LINE
--------------  ------------------------------------------------------------
   SI78139      F/QSQRCHK-MSGMCH3601-MOD/QSQRCHK-RIDS/SELECT_TABLE SELECT FR
   SI77408      OSP-DB-OTHER-INCORROUT INCORRECT RECORDS MAY BE RETURNED WIT
   SI76762      OSP-DB-OTHER-RC21-MSGSQ20525 INCORRECTLY ON A CREATE TABLE A
   SI76413      OSP-DB-OTHER-F/QSQDDL1-T/QSQDDL1-MSGMCH1210 SQL7032 QGENOBJN
   SI75462      OSP-DB INTERNAL MAINTENANCE
   SI75058      OSP-DB-OTHER-MSGSQL0302 INCORRECT ERROR MESSAGE
   SI74814      OSP-DB-OTHER-F/QSQRUN1-T/QSQRUN1-MSGSQL0122 A MSGSQL0122 MAY
   SI74680      SQL-CMPL-T/QSQPMAIN-MSGMCH0601 CRTSQLRPGI DBGVIEW(*SOURCE) P
   SI74680      OSP-DB-OTHER-MSGSQL0104 RUNSQLSTM PROBLEM WITH MARGINS PARAM
   SI74369      SQL-CMPL SQL PRECOMPILE ENHANCED WHENEVER STATEMENT
   SI74316      OSP-DB INTERNAL MAINTENANCE
   SI74316      SQL-RUN-F/QSQRUN3-T/QSQRUN3-MSGSQL0205 QUERY FAILS WITH MSGS
   SI74102      OSP-DB INTERNAL MAINTENANCE
   SI74102      OSP-DB INFRASTRUCTURE
   SI73948      OSP-DB-OTHER-UNPRED INTERNAL MAINTENANCE
   SI73316      OSP-DB-INCORROUT SQL ROUTINE CONDITION HANDLER PROBLEM
   SI72878      OSP-DB INTERNAL MAINTENANCE
   SI72324      OSP-DB INTERNAL MAINTENANCE
   SI72275      OSP-DB INTERNAL MAINTENANCE
   SI72201      OSP-DB-MSGSQL0204 ON CREATE PROCEDURE WITH ALTER TRIGGER FOL
   SI72118      OSP-DB INTERNAL MAINTENANCE
   SI71690      OSP-DB-OTHER-F/QSQCLNUP-MSGSQL7007 NOT RETURNED
   SI71484      SQL-CMPL-OTHER-MSGCPD0042 CRTSQLCI/CRTSQLCPPI ERROR WITH TER
   SI71153      OSP-DB-INTERNAL MAINTENANCE
   SI71078      OSP-DB-MSGSQL0205 WHEN TWO DEFAULT EXPRESSIONS SPECIFIED FOR
   SI70935      OSP-DB INTERNAL MAINTENANCE
   SI70453      OSP-MSGSQL0408 SQL STATEMENT-OLAP FUNCTIONS LEAD OVER PARTIT
   SI70356      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI70215      OSP-DB-MSGSQL0205 OR MSGSQL0204 REFERENCED COLUMN OR TABLE N
   SI69454      OSP-DB INTERNAL MAINTENANCE
   SI69153      OSP-DB INTERNAL MAINTENANCE
   SI69153      OSP-DB INTERNAL MAINTENANCE
   SI69056      OSP-DB INFRASTRUCTURE
   SI68940      SQL-CMPL-INCORROUT CRTSQLCI FAILS WHEN COMPILING IFS SOURCE
   SI64965      SQL-RUN-PERFM CRTSQLCI/CRTSQLCPPI PERFORMANCE
   SI68925      OSP-DB-INCORROUT SQL ROUTINE WITHOUT LANGUAGE SQL CLAUSE
   SI68840      OSP-DB-MSGSQL0204 WHEN CREATE PROCEDURE CONTAINING ALTER TRI
   SI68838      OSP-DB-OTHER-F/QSQCRTT-T/QSQCRTT-MSGSQL0636 CREATE PARTITION
   SI68765      OSP-DB-OTHER-INCORROUT WHEN UPDATE STATEMENT IS RUN WITH SEL
   SI68458      OSP-DB-OTHER-F/QSQRUN1X/11879-RCRC8-MSGSQL7008 CREATE TABLE
   SI68411      OSP-DB-OTHER-UNPRED SERVICEABILITY CHANGE-PROGRAM GROWTH INF
   SI68351      OSP-MSGSQL0913 LONG LOCK WAIT ON PROGRAM DUE TO ACCESS PLAN
   SI68331      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI68306      OSP-DB Recursive use of RUNSQL not allowed but message not c
   SI68298      OSP-DB-OTHER-THREADS-F/QSQRUN1-T/QSQRUN1-MSGSQL0204 MSGSQL02
   SI68258      SQL-RUN-F/QQQVFMT-T/QQQVFMT-MSGMCH3601 ON NESTED UNQUALIFIED
   SI68077      OSP-DB MSGMCH3203 F/QQQOOODBOP JSON function in UNION query
   SI68066      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI67935      OSP-DB INTERNAL MAINTENANCE
   SI67885      OSP-DB-OTHER-F/QSQSBAS-T/QSQSBAS-MOD/QSQGTSPC-PROC/CREATEMEM
   SI67885      OSP-DB INTERNAL MAINTENANCE
   SI67885      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI67615      OSP-DB INFRASTRUCTURE
   SI67582      OSP-DB INTERNAL MAINTENANCE
   SI67491      OSP-DB-OTHER SQL PRECOMPILE LISTING MISSING CCSID VALUE
   SI67482      OSP-DB-MSGCPD4311 external procedure with long parameters wi
   SI67287      OSP-DB-OTHER-F/QSQRCHKX/26368-MSGMCH3601 UPDATE STATEMENT FA
   SI67228      OSP-DB-PERFM SQL ROUTINE PERFORMANCE
   SI66982      OSP-DB-OTHER-MSGSQL7032 RUNSQLSTM CCSID 290, 930, OR 5026 PR
   SI66956      OSP-DB CREATE TABLE with hex string default using *STD optio
   SI66944      OSP-DB INFRASTRUCTURE
   SI66517      OSP-DB-OTHER-F/QDBIOERRQOX/4194-T/QSQRUN2X/20780-MSGCPF5387
   SI66484      OSP-DB-OTHER SQL STATEMENT USING A COLUMN OR AGGREGATE FUNCT
   SI66484      OSP DESCRIBE OF PARAMETER DATA INCORRECT WHEN TABLE HAS COLU
   SI66183      OSP-DB-INCORROUT-MSGSQL0502 WITHIN PIPELINED TABLE FUNCTION
   SI66183      OSP-DB-OTHER-INCORROUT WRONG COLUMN NAME USED FOR VIEW WHEN
   SI66183      OSP-DB-OTHER-F/QSQRCHK-T/QSQRCHK-MSGMCH1210 CRTSQLCBLI OPTIO
   SI65872      OSP-DB INTERNAL MAINTENANCE
   SI65846      OSP-DB INTERNAL MAINTENANCE
   SI65810      OSP-DB INTERNAL MAINTENANCE
   SI65760      OSP-DB INTERNAL MAINTENANCE
   SI65459      OSP-PERFM SQL INSERT SLOW AFTER A FAILED ALTER TABLE
   SI65421      OSP-DB INTERNAL MAINTENANCE
   SI65386      OSP COLUMN NAMES NOT SET CORRECTLY IN RESULT SET RETURNED IN
   SI65358      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 MSGCPF4302 F/QQQ
   SI65292      OSP-DB Teraspace memory leak when multiple derived tables in
   SI65140      OSP-DB-OTHER-F/QSQXCUTE-T/QSQXCUTE-MSGSQL0205 MSGSQL0205 F/Q
   SI65097      OSP-DB INTERNAL MAINTENANCE
   SI64454      OSP-DB-OTHER-MSGSQL0326 JOBS SEEING SQL0326 IN APPLICATION J
   SI64408      OSP-DB-OTHER-F/QSQRCHK-T/QSQRCHK-MSGMCH1210 MCH1210 F/QSQRCH
   SI64347      OSP-DB-F/QSQRCHK-MSGMCH1210 when returning a SQL0390 process
   SI64347      OSP-DB-OTHER-T/QSINS-MSGSQL0203 INSERT STATEMENT FAILS WITH
   SI64347      OSP-DB-OTHER-F/QSQRCHK-MSGMCH1210 WHEN RECURSIVE COMMON TABL
   SI64192      OSP-DB INTERNAL MAINTENANCE
   SI64004      OSP-DB INTERNAL MAINTENANCE
   SI64004      OSP-DB Internal Maintenance
   SI63877      OSP-DB Correct FULL OUTER JOIN implementation
   SI63862      OSP-DB INTERNAL MAINTENANCE
   SI63836      OSP-DB INTERNAL MAINTENANCE
   SI63764      OS-DB-OTHER Fix handling of partition table range boundary v
   SI63636      OSP-DB INTERNAL MAINTENANCE
   SI63613      OSP-DB INTERNAL MAINTENANCE
   SI63513      OSP-DB INTERNAL MAINTENANCE
   SI63463      OSP-DB Addition of LTRIM / RTRIM Function Support
   SI63379      OSP-DB Internal Maintenance
   SI63231      OSP-DB Do not issue SQL7901 for create package
   SI63141      OSP-DB-OTHER-RC2-MSGSQL0101 SQL COMPLEX SQL0101 RC2
   SI63077      OSP-DB-OTHER-F/QSQRUN1-T/QSQRUN1-MSGSQL0205 COLUMN NAME NOT
   SI63077      OSP-DB-OTHER-F/QSQRUN2-T/QSQRUN2-MSGSQL0204 REMOTE THREE PAR
   SI63077      OSP-DB Internal Maintenance
   SI63005      OSP-DB-OTHER-F/QSQPLIST-T/QSQPLIST-MSGMCH3402 ALTER TABLE FR
   SI62773      OSP-DB INTERNAL MAINTENANCE
   SI62630      OSP-DB INTERNAL MAINTENANCE
   SI62581      OSP-DB INTERNAL MAINTENANCE
   SI62527      OSP-DB-OTHER-F/QQDAPROC-T/QQDAPROC-MSGMCH3602 ON SOME CRTSQL
   SI62527      OSP-DB INFRASTRUCTURE
   SI62507      OSP-DB INTERNAL MAINTENANCE
   SI62294      OSP-DB INTERNAL MAINTENANCE
   SI62111      OSP-DB INFRASTRUCTURE
   SI62099      OSP-DB Internal Maintenance
   SI62063      OSP-DB INFRASTRUCTURE
   SI62056      OSP-DB-OTHER-F/QSQRUN2-T/QSQRUN2-MSGSQL0204 SQL0204 F/QSQRUN
   SI61633      OSP-DB INTERNAL MAINTENANCE
   SI61322      OSP-DB SQL0171 when using VARGRAPHIC type with INSTR() or LO
   SI61196      OSP-DB-OTHER-T/QSQSCHEM-MSGCPD0018 RUNSQLSTM PROBLEM WITH CL
   SI61054      OSP-DB Internal Maintenance
   SI60961      OSP-DB-MSGSQL0205 QSQBLQDT for table function with correlati
   SI60928      OSP-DB Allow select when setting CURRENT TEMPORAL SYSTEM_TIM
   SI60801      OSP-DB-OTHER-T/QSQPMAIN-MSGCPF9999 FROM CRTSRCPF/CHGSRCPF/AD
   SI60801      SQL-CMPL-CURR ALLOW COMPILEOPT('OPTION(*EVENTF)') ON SQL PRE
   SI60801      OSP-DB INTERNAL MAINTENANCE
   SI60791      OSP-DB-OTHER-INCORROUT QDT is not rebuilt when SELECT * and
   SI60598      OSP-DB Internal Maintenance
   SI60594      OSP-DB INFRASTRUCTURE
   SI60594      OSP-DB INFRASTRUCTURE
   SI60473      OSP-DB INTERNAL MAINTENANCE
   SI60428      OSP-DB-OTHER BETTER SQL IDENTIFIER NAMES
   SI60428      OSP-DB-F/QSQINS-MSGMCH3402 DLTF on table with row and column
   SI60398      OSP-DB-MSGMSG0601 T/QQQFVMT Proc/MAP using lateral correlati
   SI60398      OSP-DB INFRASTRUCTURE
   SI60363      OSP-DB-MSGSQL0101 Using a correlated column in the ORDER BY
   SI60268      OSP-DB Internal Maintenance
   SI60267      OSP-DB INFRASTRUCTURE
   SI60253      OSP-DB INFRASTRUCTURE
   SI60199      OSP-DB-OTHER CREATE TABLE AS WITH DATA does not ignore an OV
   SI60185      OSP-DB-OTHER-MSGSQL0053 RUNSQLSTM PROBLEM WITH UNICODE CCSID
   SI60144      OSP-DB-INCORROUT INLINED SQL FUNCTION
   SI60104      OSP-DB Internal Maintenance
   SI60050      SQL-CMPL-CURR-T/QSQPRUN-MSGSQL8016 SQL PRECOMPILE
   SI60050      OSP-DB INTERNAL MAINTENANCE
   SI60012      OSP-DB Internal Maintenance
   SI59858      OSP-DB INFRASTRUCTURE
   SI59663      OSP-DB Internal Maintenance
   SI59655      OSP-DB INTERNAL MAINTENANCE
   SI59609      OSP-DB INFRASTRUCTURE
   SI59515      OSP-DB Internal Maintenance
   SI59511      OSP-DB INFRASTRUCTURE
   SI59511      OSP-DB INFRASTRUCTURE
   SI59511      OSP-DB INFRASTRUCTURE
   SI59310      OSP-DB-OTHER-MSGSQL0900 AFTER CRTSQLCI to REMOTE RDB
   SI59276      OSP-DB INFRASTRUCTURE
   SI59267      OSP-DB-OTHER-F/QQQSRVE1-T/QSQRUN3-RC21-MSGCPD4374 UPDATING X
   SI59147      OSP-DB-MSGMCH3601-QSQPROC RUNSQL of compound dynamic stateme
   SI59112      OSP-DB INTERNAL MAINTENANCE
   SI58992      OSP-DB INTERNAL MAINTENANCE
   SI58974      OSP-DB OFFSET clause changes for internal processing
   SI58968      OSP-DB Internal Maintenance
   SI58953      OSP-DB INTERNAL MAINTENANCE
   SI58806      OSP-DB Internal Maintenance
   SI58511      OSP-DB-OTHER-PERFM EXTRA CONNECTION DONE WITH 3-PART NAMING
   SI58511      OSP-DB INTERNAL MAINTENANCE
   SI58511      OSP-DB Internal Maintenance
   SI60058      OSP-DB-OTHER-MSGSQL0900 AFTER CRTSQLCI to REMOTE RDB
   SI67728      OSP-DB-PERFM INLINED SQL TABLE FUNCTION

Summary Information

System..............................  i
Models..............................  
Release.............................  V7R3M0
Licensed Program....................  5770SS1
APAR Fixed..........................  View details for APAR SE75791
View details for APAR SE77403
View details for APAR SE76759
View details for APAR SE77404

Superseded by:......................  View fix details for PTF SI79388
Recompile...........................  N
Library.............................  QSYS
MRI Feature ........................  NONE
Cum Level...........................  NONE


IBM i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"5770SS1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
25 May 2022