suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT38345 Status: Closed

DB2 PREP COMMAND FAILS WITH THE ERROR SQL0318N WHEN THE VALUES CLAUSE
CONTAINS THE KEYWORD FOR.

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
The problem is introduced after the multi-row insert/fetch
feature was delivered.

The issue occurs when the SQL statement has FOR keyword in the
VALUES clause.

Sample SQL

EXEC SQL
    INSERT INTO T1
    VALUES ( NEXT VALUE FOR NUM_SEQ,
        :var1,
        :var2)
END-EXEC.

The keyword FOR is wrongly interpreted in this SQL.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Cobol precompiler specific.                                  *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 version 11.1 mod 4 fix pack 7                 *
****************************************************************
Local Fix:
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* Cobol precompiler specific.                                  *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 version 11.1 mod 4 fix pack 7                 *
****************************************************************
Comment
First fixed in Db2 version 11.1 mod 4 fix pack 7
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
12.09.2021
17.04.2022
17.04.2022
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)