Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
-419 SQL error when binding

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
senthamizh

New User


Joined: 27 Apr 2009
Posts: 22
Location: mumbai

PostPosted: Sun Jun 12, 2016 8:20 pm    Post subject: -419 SQL error when binding
Reply with quote

Hi,

I am getting -419 error when i execute the below query,

Select ( REV/RMS) as xyz
from
( select sum(RMS) as RMS,
sum(REV) as REV
from table 1
)

when i bind the pgm it is failing with -419.

Both the column REV and RMS is decimal 18,4 defined in table1.

I checked in IBM site and they have said that we use to check the formula 31 - NP+NS- DS. The result should no be -ve.

in my case it is 31-18+4 - 19 = -2 because of this it is failing with -419.
I tried cast function but not solved this problem.

But i want to know how to solve this.

Thanks,
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Sun Jun 12, 2016 8:49 pm    Post subject: Reply to: -419 sql error
Reply with quote

do not double post the same question on the sibling forum
people answering there are the same answering here.
You will not get double answers in the same time
or the same answers in half the time.
You will just pi** off people.

the topic on the other forum has been deleted
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1827
Location: NY,USA

PostPosted: Mon Jun 13, 2016 9:18 am    Post subject:
Reply with quote

The database configuration setting "MIN_DEC_DIV_3" needs to be configured with the value "YES".
But send an email to DBA first and get the directions for the fix.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us