DB2 - Problembeschreibung
| Problem IC66520 | Status: Geschlossen |
SQL0451N for DECIMAL data type in COBOL routine | |
| Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problembeschreibung: | |
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-Zusammenfassung: | |
Users affected: All Problem Description: See above Problem Summary: See above | |
| Local-Fix: | |
Change DECIMAL data type to FLOAT type | |
| verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows | |
| Lösung | |
First fixed in next release | |
| Workaround | |
N/A | |
| Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 22.02.2010 17.03.2010 20.08.2010 |
| Problem behoben ab folgender Versionen (IBM BugInfos) | |
| Problem behoben lt. FixList in der Version | |
| 9.7.0.2 |
|