× 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,
It would be a biggest surprise for me, if what you ask is possible....
To say more - using _Rwrite you can put whatever into the file, even data that will be completely unreadable using QRY or SQL due to type error.
But you can use the same _Rwrite to repair the errors as well.

My understanding is that as _Rwrite accepts (void *) to the structure that represents the record, it just sends a buffer - no tests apply.

However people from overseas (I mean US) will wake soon - see what they say....

Definitely someone will say that THIS is one of the reasons why you should use RPG rather than C :-)

Jevgeni.

-----Original Message-----
From: c400-l-bounces+jevgeni.astanovski=sampopank.ee@xxxxxxxxxxxx [mailto:c400-l-bounces+jevgeni.astanovski=sampopank.ee@xxxxxxxxxxxx] On Behalf Of Erik Olsson
Sent: 16. september 2010. a. 13:46
To: c400-l@xxxxxxxxxxxx
Subject: [C400-L] _Rwrite to db with default value

Hello,

If I have DDL defined tables with columns holding DB2 generated values such
as ROWID, defaults as CURRENT_TIMESTAMP etc - how do I code a write to
records like that using _Rwrite? To be overly clear, I don't want to
generate say the timestamp in my code, I want DB2 to insert the current
timestamp for each write on these types of columns. Any input appreciated.

Thank you,
Erik

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.