100 f* Program ID - CDATE8G
02/09/05
200 f* Written By - James H. Greene
300 f* Date Written - 2005/02/09
02/09/05
400 f* Purpose - return 30 character date in words
500 f* example Tuesday, December 31,
1946 02/09/05
600 f* parm -isod- format 1946-12-31
02/09/05
700
d*****************************************************************
02/09/05
800 d isod s d datfmt(*iso)
02/09/05
900 d isodw s d datfmt(*iso)
inz(d'0001-01-01')
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.
02/09/05
1000 d word s 30a
02/08/05
1100 d days S 9 DIM(7) ctdata
perrcd(7)
1200 d months S 9 DIM(12) ctdata
perrcd(6)
1300
d*****************************************************************
02/09/05
1400 /free
02/08/05
1500 word = %trim(days(%rem(%diff(isod:isodw:*days):7) + 1))
+ ', ' + 02/09/05
1600 %trim(months(%subdt(isod:*m))) + ' '
+ 02/09/05
1700 %char(%subdt(isod:*d)) + ', '
+ 02/09/05
1800 %char(%subdt(isod:*y))
; 02/09/05
1900 *inlr = *on
; 02/09/05
2000 /end-free
02/08/05
2100 c************************************************
02/09/05
2200 c *inzsr begsr
2300 c *entry plist
2400 c parm isod
02/09/05
2500 c parm word
02/08/05
2600 c endsr
2700 c************************************************
02/09/05
2800 ** days of week
2900 Monday Tuesday Wednesday Thursday Friday Saturday Sunday
3000 ** months of year
3100 January February March April May June
3200 July August September October November December
* * * * E N D O F S O U R C E * ** *
This was first published in March 2005