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



Hi, David:

I think you need to open a PMR to get an APAR created so IBM will fix this at 7.1 and above.

Meanwhile, further experiments seem to indicate that the problem is with the "or replace" logic.

So, a "circumvention" for now, until a PTF becomes available, is to issue:

ALTER TABLE yourlib/PK1 DROP PRIMARY KEY CASCADE

before re-issuing the new "create or replace table ..." when the "key sequence" has changed.

Hope this helps,

Mark S. Waterbury

> On 7/19/2017 11:58 AM, David Gibbs wrote:
Folks:

I observed some odd behavior and just want to confirm its a bug before we open a PMR.

We ran the following SQL statement ...

create or replace table yourlib/pk1 (f1 char (10), f2 char (10), f3 char (20), primary key (f1,f2));

and did a DSPFD on it ... the key fields for the file showed up correctly.

We then ran this statement ...

create or replace table yourlib/pk1 (f1 char (10), f2 char (10), f3 char (20), primary key (f2,f1));

(just reversing the order of the primary keys)

When we did a DSPFD on the file, the key fields for the file showed up as F1 & F2 (in that order).

Can someone run that same test and confirm the behavior?

Thanks!

david



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.