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

Open a PMR for this, with this test case. Ask IBM to "fix" it, or explain why the "default value" should affect the record format Level ID.

Mark

> On 4/20/2016 4:34 PM, David Gibbs wrote:
On 4/20/2016 3:20 PM, Rob Berendt wrote:
In general, anything that changes the length or position of any fields in
the record format used by the program requires that the program be
recompiled.

Yep, that's what I thought too ... but it appears a columns default value effects it too.

I created a test table with the following SQL:

CREATE TABLE DEVDMGWRK/TEST1 (FIELD1 CHAR ( 10) NOT NULL WITH
DEFAULT 'ABC', FIELD2 CHAR ( 10) NOT NULL WITH DEFAULT)

The format level identifier on the table is '1E0C965CBDD7E'.

I then dropped the default from FIELD1

ALTER TABLE DEVDMGWRK/TEST1 ALTER COLUMN FIELD1 DROP default

Now the format level identifier is '1E0C9664BDD7E'.

It seems to me that the default value of a field should have nothing to do with the format of the file, just its contents.

david





As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.