|
Receiving the following message when embedded SQL statement runs in RPG (using execute immediate):
MCH0601 - Space offset X'00101400' or X'0000000000000000' is outside current limit for object FUNDDNRP DMIGPLS C00J75D.
This error actually occurs during the SQL Statement according
to the program dump that is created. Statement is performing
an INSERT INTO. Have tested this query in Run SQL Scripts.
Statement runs fine without the INSERT INTO. When I add in the
INSERT INTO, Run SQL Scripts receives the exact same error.
Have checked that values being selected and all should fit in
target file. Verified that no null values are in results.
This particular program has been running fine but failed last
night. A PTF for SQL was applied over the weekend, but not
sure why it would only affect this particular program.
Running V5R4.
After sending the email , I actually found something on Google that gave me an idea. As opposed to doing my INSERT INTO, I did a CREATE TABLE AS (sql statement) WITH DATA. The resulting table
had one field that was different from my destination file.
There was one destination field defined as decimal(11,2) while
the source field was defined decimal(9,2). When I modified the
query to manually convert the source field to decimal(11,2), the
query started working.
This has me confused. I could see this being a problem if the source field was larger than the destination, but it seems that SQL should handle moving a smaller field into a larger one. I have never seen this problem before and this program has been running in its current form since (at least) March 2007. I am confused as to why the issue suddenly popped up this morning.
Anyone aware of a recent PTF that would likely trigger this problem? Maybe this should have come up a long time ago and I've
just been lucky for nearly 3 years. Seems hard to imagine..
As an Amazon Associate we earn from qualifying purchases.
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.