We noticed in a couple of programs where we were using timestamps that the rightmost three positions are consistently zero and never otherwise. I have tested this with even just a simple ILE RPG program that dsplys a %char(%timestamp()); and still only get zeros for the last three digits.
However...pulling a microsecond(current timestamp) in an interactive SQL session provides a value which has all six digits being used.
So, is this a limitation of RPG? Is there something else I am missing? Is anyone else using microseconds at all in RPG that can vouch for this ever using the last three digits?
Thanks in advance!!
May 15, 2009 2:43 PM
January 9, 2011 4:56 PM