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



Any of the system generated audit columns will be brought into the RPG defined DS. These columns cannot be overridden at all, which is what the overriding clause is attempting to do.

My workaround to this is to create a view that omits the audit columns and insert / update to that view. I also have user identity columns so I have to use the override user value on insert.

Dcl-Ds TT_TABLE_VIEW_DS Extname( 'TT_TABLE_V0' ) Inz Qualified Alias;
End-Ds;
exec sql
insert into TT_TABLE_VIEW
overriding user value
values ( :TT_TABLE_VIEW_DS );

exec sql
update TT_TABLE_VIEW
set row = :TT_TABLE_VIEW_DS
where ID = :TT_TABLE_VIEW_DS.ID;

-Matt


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.