Thanks! So I guess this means that to accomplish the similar in C would be
to use say QUSLFLD to know that the particular field is a timestamp field
(as C lacks a timestamp datatype) and then initialize it by hand before
writing it. I guess that would work...

2010/9/16 Barbara Morris <bmorris@xxxxxxxxxx>

On 9/16/2010 7:20 AM, Erik Olsson wrote:
Thanks Dennis.
Then I'll probably resort to another solution. The view thing just isn't
maintainable. I'm just wondering how this is really handled under the
covers
of an RPG write for instance... I would think there would be a way to
simulate that.


When an RPG program only writes out some of the fields, the remaining
fields are filled with RPG's default values, not necessarily the default
values for the data base. So a timestamp would be filled with the
low-value 0001-01-01.00.00.00 rather than the current timestamp that
you'd get with a logical view that didn't contain the timestamp.
--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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 on our policy page. If you have questions about this, please contact [javascript protected email address].