DCL:MISC£±:DATELIB : Handling of Dates *#:Explanation of Subroutines
Expresses a date by a character string in the format specified.
DATEC1 : Expresses Type 1 date by a character sting.
DATEC2 : Expresses Type 2 date by a character sting.
DATEC3 : Expresses Type 3 date by a character sting.
CALL DATEC1(CFORM,IDATE)
CALL DATEC2(CFORM,IY,ITD)
CALL DATEC3(CFORM,IY,IM,ID)
IDATE (I) Type 1 date. IY (I) Year. IM (I) Month. ID (I) Day. ITD (I) Serially-counted day. CFORM (C *( *)) The format for the date. It is both the input and output parameter The key characters that can be used in CFORM are: year 'Y', month 'M', day 'D', month represented in characters 'C', and day of week 'W'. For example, for IDATE=19920401 (which is a Wednesday), CFORM='APR, 1,92 (WED)'
will be returned by calling DATEC1 with the specification CFORM='CCC,DD,YY (WWW)'.