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



On 2017-12-21 10:14 AM, Vernon Hamberg wrote:

In 7.3 it is possible to specify the number of fractional seconds, as IBM calls it, in a TIMESTAMP data type in RPG. It can go out to 12 decimal positions. Default is 6.

I'm not on 7.3 yet, so I haven't tested it. But this down to picoseconds.


But be aware that RPG's %TIMESTAMP and INZ(*SYS) still only set the timestamp to millisecond accuracy as they always have. With the default of 6 fractional seconds, you get '000' at the end of a timestamp set by RPG. With 12 fractional seconds, you get '000000000' at the end.

There's an RFE for RPG to give microsecond accuracy.
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=99252


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.