|
A timestamp contains both time and date information thus a move from a
character field requires both. Move charDate to a 'date' type field first
and then move the date field to the timestamp field.
d charDate s 8 Inz('19570630')
d DateField s d
d timeStamp s z Inz
c *iso0 move charDate DateField
c move DateField timeStamp
c eval *inlr=*on
Scott Mildenberger
> -----Original Message-----
> From: Feador, Jerry [mailto:JFeador@Kiausa.com]
> Sent: Tuesday, May 21, 2002 10:13 AM
> To: 'rpg400-l@midrange.com'
> Subject: RE: Calculating Duration in days/hours from timestamp field
>
>
> Now you guys got me playing with converting dates...
> Can anybody tell me why this gives me a "The factor 2 entry
> of charDate is
> too small to contain a timestamp" (compile) error?
> The manual says I can move a character date to a timestamp
> and I have the
> (*Zero) to indicate that there are no separators...
>
> d charDate s 8 Inz('19570630')
> d timeStamp s z Inz
> c *iso0 move charDate timeStamp
> c eval *inlr=*on
>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.