DCL:MISC£±:DATELIB : Handling of Dates *#:Explanation of Subroutines
Calculates the number of days that has elapsed.
DATEG1 : Calculates the number of days (N) that has elapsed between IDATE and NDATE.
DATEG2 : Calculates the number of days (N) that has elapsed between IY,ITD and NY,NTD.
DATEG3 : Calculates the number of days (N) that has elapsed between IY,IM,ID and NY,NM,ND.
CALL DATEG1(N,IDATE,NDATE)
CALL DATEG2(N,IY,ITD,NY,NTD)
CALL DATEG3(N,IY,IM,ID,NY,NM,ND)
IDATE, NDATE (I) Type 1 date. IY, NY (I) Year. IM, NM (I) Month. ID, ND (I) Day. ITD, NTD (I) Serially-counted day. N (I) Number of elapsed days.