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



Check if your key fields (which you said were fields from the file) are redefined in a data structure with some diff in storage not length (like packed versus signed) ? I can't try it right now but the err is familiar. And if not the key, then a redef of the record.
Jim

----- Original Message ----- From: "Scott Klement" <rpg400-l@xxxxxxxxxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, August 25, 2010 8:21 PM
Subject: Re: Help - CPF511D error


Hate to say it, but... this sure sounds like a problem where memory is
being corrupted. This would imply a mismatched parameter somewhere
that's causing memory that doesn't belong to you to get stomped on.

Unfortunately, this could be a bug that's years old. Even decades old,
and everyone may have thought it was perfectly okay, because it didn't
produce an error -- but you were just "lucky" (or perhaps "unlucky"
depending on your point of view.)

But other than memory corruption, I can't think of anything that would
mess up a chain to a file.


On 8/25/2010 6:55 PM, sjl wrote:
One of my colleagues was making a routine enhancement to an OPM program
today. He added /one more/ data structure to the program, which caused the
dreaded CPF6301 error message, indicating that the program has too many
arrays, tables, or data structures defined.

So, he used CVTRPGSRC to convert the code to RPGIV, which he was able to
compile successfully, and the first time that it was run the program issued
a CPF511D error ("Parameter integrity error occurred with reason code 2.")
on a chain to a particular file. Except for the deficiency that he was
trying to fix, this program was working fine /prior/ to converting it to
RPGIV.

The CPF511D error always seems to occur on the 2nd successive chain to this
file.

We determined a Q&D (but ugly and very inefficient) way to fix the program
was to CLOSE and OPEN the file prior to each chain, but we need a better
solution to this problem...

I can post some code, but there is nothing special about this code... the
chain is done with a key list that defined by using two of the fields
defined in the file, one of which is signed 8/0, and the other field is a
4-byte alpha.

Regards,
sjl





--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.