DB2 - Problem description
| Problem IC66520 | Status: Closed |
SQL0451N for DECIMAL data type in COBOL routine | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
When trying to create a COBOL routine SQL0451 is returned for
the column defined as the DECIMAL data type.
Example:
=========
create procedure DB2INST1.TESTSP (
in in_parm1 char(8),
in in_parm2 char(8),
in in_parm3 decimal(1,0),
)
external name 'TESTSP'
language cobol
PARAMETER STYLE GENERAL WITH NULLS
modifies sql data
Output:
=========
DB21034E The command was processed as an SQL statement because
it was not a valid Command Line Processor command. During SQL
processing it returned:
SQL0451N The "PARAMETER #3" definition, in the statement that
defines routine "DB2INST1.TESTSP", contains a data type
"DECIMAL" that is not appropriate for a non-sourced routine
written in the given language. LINE NUMBER=4.
SQLSTATE=42815
However the routine can be created in DB2 v8.x and DB2 v9.1
without any problems. | |
| Problem Summary: | |
Users affected: All Problem Description: See above Problem Summary: See above | |
| Local Fix: | |
Change DECIMAL data type to FLOAT type | |
| available fix packs: | |
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows | |
| Solution | |
First fixed in next release | |
| Workaround | |
N/A | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 22.02.2010 17.03.2010 20.08.2010 |
| Problem solved at the following versions (IBM BugInfos) | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.2 |
|