Hi All,
I am trying to unload data from the DB2 table, I am getting decimal overflow error for one of the record which has values shown below.
SQL query
select
CAST(DECIMAL( F.QTY_SH_RECVD_SUOM* E.PRICE_PO ,13, 4)
AS CHAR(20)),
F.QTY_SH_RECVD_SUOM - declared as decimal(15,4) not null
E.PRICE_PO - declared as decimal(15,5,) not null
Below are the values for the particular record which is giving me an error
SELECT
CAST(DECIMAL(1190720.0000 * 1.01800,13,4) AS CHAR(20))
FROM SYSIBM.SYSDUMMY1
Just want to understand why is it failing only for this particular record.
Thanks,
Rakesh MS
exception error decimal overflow has occurred during multipl
-
- Posts: 30
- Joined: Thu Mar 30, 2017 2:09 pm
- Skillset: mainframe
- Referer: surfing
Re: exception error decimal overflow has occurred during mul
What is the EXACT error message issued, what about any SQL return codes shown.
Psychic day was Monday this week.
Psychic day was Monday this week.
-
- Posts: 30
- Joined: Thu Mar 30, 2017 2:09 pm
- Skillset: mainframe
- Referer: surfing
Re: exception error decimal overflow has occurred during mul
expat wrote:What is the EXACT error message issued, what about any SQL return codes shown.
Psychic day was Monday this week.
Sorry for the delay in reply,
Below is the error message
Code: Select all
DSNT404I SQLCODE = 802, WARNING: EXCEPTION ERROR DECIMAL OVERFLOW HAS
OCCURRED DURING MULTIPLICATION OPERATION ON DECIMAL DATA, POSITION *N
DSNT418I SQLSTATE = 01519 SQLSTATE RETURN CODE
Thanks
Rakesh
-
- Similar Topics
- Replies
- Views
- Last post
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4958
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
How to sum a decimal value using sort
by hkaur7087 » Thu Aug 05, 2021 2:19 pm » in DFSORT/ICETOOL/ICEGENER - 4
- 2348
-
by sergeyken
View the latest post
Thu Aug 05, 2021 7:48 pm
-
-
- 2
- 4126
-
by sergeyken
View the latest post
Tue Aug 02, 2022 4:07 am
-
- 7
- 1997
-
by sergeyken
View the latest post
Wed Dec 23, 2020 6:39 pm
-
-
Array processing and Table handling with packed decimal
by rogerstrycova » Tue Oct 26, 2021 3:55 pm » in IBM Cobol - 2
- 1706
-
by Robert Sample
View the latest post
Wed Oct 27, 2021 1:12 am
-