Monday, 7 January 2013

DATE DATA TYPE IN RPGLE

0004.00 ddate             s               d   inz(D'2004-12-12')
0005.00 D                                     DATFMT(*JUL)     


DATFMT
Format Name Description Format (Default Separator) Valid Separators Length Example
2-Digit Year Formats
*MDY Month/Day/Year mm/dd/yy / - . , '&' 8 01/15/96
*DMY Day/Month/Year dd/mm/yy / - . , '&' 8 15/01/96
*YMD Year/Month/Day yy/mm/dd / - . , '&' 8 96/01/15
*JUL Julian yy/ddd / - . , '&' 6 96/015
4-Digit Year Formats
*ISO International Standards Organization yyyy-mm-dd - 10 1996-01-15
*USA IBM USA Standard mm/dd/yyyy / 10 01/15/1996
*EUR IBM European Standard dd.mm.yyyy . 10 15.01.1996
*JIS Japanese Industrial Standard Christian Era yyyy-mm-dd - 10 1996-01-15

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fbooks_web%2Fc0925085295.htm

No comments:

Post a Comment