Ü  %TIMESTAMP (value  : *ISO | *ISO0 )         

·         A timestamp data-type value with or without separators

 

Example –%timestamp built-in function in rpgle

 


0072.00  * CALCULATE THE TIME FOR THE CURRENT SYSTEM DATE
0073.00 C                   EVAL      TIMESTP=%TIMESTAMP()
0074.00 C                   EVAL      TIME_IS=%TIMESTAMP()
0075.00 C                   EVAL      TIME_ISO=%char(TIME_IS:*iso0)

 

OUTPUT

TIME_IS = '2012-05-18-07.11.00.926000'
TIME_ISO = '20120518071100926000'

 










User Comments:



Subscribe

  Email:



Copyright © www.go4as400.com, 2013-2017. Copyright notice