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



Sorry about that, SJL.

The MsgID is CPF5035.

Thanks,

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery Platform

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of sjl
Sent: Wednesday, October 08, 2014 9:18 PM
To: midrange-l@xxxxxxxxxxxx
Subject: CPYF Failing

Kurt -

When posting a message description or portion thereof, you should also post the message id (MSGID).

Regards,
sjl


-----Original Message-----
From: Kurt Anderson
Sent: Wednesday, October 08, 2014 4:05 PM Newsgroups: midrange.midrange-l
To: 'Midrange Systems Technical Discussion'
Subject: CPYF Failing

I added a column to a table. The added column is not the last column.
SourceOfStatement For
SourceCode Char (10) NOT NULL DEFAULT ' ',

I then ran a CPYF with map/drop to copy data from the old version of the table into the new. This works.

But we have another table that is defined LIKE the table that was changed.
CREATE TABLE StatePH1 LIKE StateP
RCDFMT StateF;

The CPYF with map/drop from the old StatePH1 table to the new one results in the following error:
20 -- A field that is not null capable could not be set to null.

Does anyone have an idea as to what I need to fix here? According to this
old document, it should be bringing in the Default Value (and based on the error, it sounds like it's bringing in the nullability, which appears to be in the same group as the Default Value):
https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/sqlp/rbafymstcrttbllike.htm

I'd appreciate any feedback. We're on IBM i 7.1

Thanks,

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery Platform [cid:image002.jpg@01CD16F9.25D27630]
web: www.customcall.com<http://www.customcall.com/> | email:
kanderson@xxxxxxxxxxxx<mailto:kanderson@xxxxxxxxxxxx>

A Division of Enghouse Systems Ltd.<http://www.enghouse.com/> (TSX:ESL)

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-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.