× 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.



I have a simple SQLRPGLE program that aggregates summary data and inserts it into another DB file. This program has been running for years.

Now I'm getting this error:

SQL0404
Message . . . . : Value for column or variable CMCITY too long.
Cause . . . . . : An INSERT, UPDATE, MERGE, SET, VALUES INTO, or GET
DIAGNOSTICS statement specifies a value that is longer than the maximum
length string that can be stored in CMCITY. The length of CMCITY is 20 and
the length of the string is 30.
Recovery . . . : Reduce the length of the string from 30 to a maximum of 20
and try the request again.

Instead of just truncating and continuing to insert the remaining date, it halted the insert altogether.
Easy enough to fix... BUT

1. I'm absolutely certain this situation would have occurred on a regular basis in the past, and
2. This is the second SQL insert error I've seen TODAY that halted the insert (the other was a NULL value into a character field).

Seems maybe a PTF or something has tightened up the syntax on the SQE??

TIA,
Greg
[Logo]<https://www.totalbizfulfillment.com/> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
1 Corporate Dr
Grantsville, MD 21536
www.totalbizfulfillment.com<http://www.totalbizfulfillment.com>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.