× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 4/27/2016 4:20 PM, Hoteltravelfundotcom wrote:
I had to add a filter for warehouse. Suddenly I am getting a null error,
code 20.
SELECT IDIDAT, COUNT(DISTINCT idinvn)
FROM CA1665AFCV.SROISDPL T01
WHERE IDIDAT >= 20160101 AND IDORDT = 'FB'
and idsrom in (100, 114)
GROUP BY rollup(IDIDAT)
the error is this:
Message . . . . : Data mapping error on member FBA.

Cause . . . . . : A data mapping error occurred on field SEL0002 in
record
number 0, record format FBA, member number 1, in member FBA file FBA in

library QGPL, because of error code 20. The error code meanings follow:

20 -- A field that is not null capable could not be set to null.

The SQL diagnostic messages aren't always as helpful as we'd like, but
this one is OK. What happens if there's a day (IDIDAT) that has no
invoices with an order type of FB? You'll get a value for the date, and
a null for the count of invoices. Read up on COALESCE.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.