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 :-)
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
Subject: [C400-L] _Rwrite to db with default value
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.
This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact