Pretty sure if you want RLA, you'll need to OVRDBF to point to the correct
partition.

Just like old multi-member PFs ...

Charles

On Mon, Oct 15, 2018 at 8:21 AM Jonathan Ball <jonball52@xxxxxxxxx> wrote:

We are in the process of partitioning some large tables because they
soon will reach the limits for a single partition. In testing, we have
a program that is writing a row/record (native RPG write) that should go
to the third partition based on the range key. The write attempt is
trying to put it into the first partition, and it is throwing a check
constraint violation CPF502F: "Check constraint violation on member
PART000001."

I would have expected the DB2 database manager would take care of
ensuring the row was written to the correct partition. I can't find
anything in the programming reference manuals addressing how to ensure
that the row is written to the correct partition. Changing the programs
to use SQL inserts rather than native language writes is not an option.

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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].