1 SUBROUTINE w3tagb(PROG,KYR,JD,LF,ORG)
2 c$$$ subprogram documentation block
4 c subprogram: w3tagb operational job identifier
5 c prgmmr: farley org: np11 date: 1998-03-17
7 c abstract: prints identifying information for operational
8 c codes. called at the beginning of a code, w3tagb prints
9 c the
program name, the year and julian day of its
10 c compilation, and the responsible organization. on a 2nd
11 c line it prints the starting date-time. called at the
12 c
END OF A JOB, entry routine, W3TAGE PRINTS A LINE WITH the
13 c ending date-time and a 2nd line stating the
program name
14 c and that it has ended.
16 c
PROGRAM history log:
18 c 89-10-20 r.e.jones convert to cray cft77 fortran
19 c 91-03-01 r.e.jones add machine name to ending line
20 c 92-12-02 r.e.jones add start-ending time-date
21 c 93-11-16 r.e.jones add day of year, day of week, and julian day
23 c 97-12-24 m.farley print statements modified for 4-digit yr
24 c 98-03-17 m.farley replaced datimx with calls to w3locdat/
w3doxdat
25 c 99-01-29 b. vuong converted to ibm rs/6000 sp
27 c 99-06-17 a. spruill adjusted the
SIZE of
PROGRAM name to accommodate
28 c the 20
CHARACTER NAME CONVENTION ON THE IBM SP.
29 c 1999-08-24 gilbert added
call to start() in w3tagb and a call
30 c to summary() in w3tage to print out a
31 c resource summary list for the
program using
33 c 2012-10-18 vuong remove print statement 604
34 c 2013-02-06 vuong modified print statement 604
36 c usage:
CALL w3tagb(prog, kyr, jd, lf, org)
40 c names
INTERFACE description of variables and types
41 c ------ --------- -----------------------------------------------
42 c prog arg list
PROGRAM name character*1
43 c kyr arg list year of compilation integer
44 c jd arg list julian day of compilation integer
45 c lf arg list hundreths of julian day of compilation
46 c integer(range is 0 to 99 inclusive)
47 c org arg list organization code(such as wd42)
51 c names
INTERFACE description of variables and types
52 c ----------------------------------------------------------------
53 c ddate print year and julian day(nearest hundreth)
54 c file of compilation real
56 c subprograms called: clock, date
58 c remarks: full word used in order to have at least
59 c seven decimal digits accuracy for
VALUE of ddate.
60 c subprogram clock and date may differ for each
TYPE
61 c computer. you may have to change them for another
65 c language: fortran 90
69 CHARACTER *(*) PROG,ORG
70 CHARACTER * 3 JMON(12)
73 INTEGER IDAT(8), JDOW, JDOY, JDAY
77 DATA dayw/
'SUN',
'MON',
'TUE',
'WEN',
'THU',
'FRI',
'SAT'/
78 DATA jmon /
'JAN',
'FEB',
'MAR',
'APR',
'MAY',
'JUN',
79 &
'JUL',
'AUG',
'SEP',
'OCT',
'NOV',
'DEC'/
88 ddate = dyr + djd + dlf
90 600
FORMAT(//,10(
'* . * . '))
91 print 601, prog, ddate, org
92 601
FORMAT(5x,
'PROGRAM ',a,
' HAS BEGUN. COMPILED ',f10.2,
97 print 602, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
98 & idat(7),idat(8),jdoy,dayw(jdow),jday
99 602
FORMAT(5x,
'STARTING DATE-TIME ',a3,1x,i2.2,
',',
100 & i4.4,2x,2(i2.2,
':'),i2.2,
'.',i3.3,2x,i3,2x,a3,2x,i8,//)
107 print 603, jmon(idat(2)),idat(3),idat(1),idat(5),idat(6),
108 & idat(7),idat(8),jdoy,dayw(jdow),jday
109 603
FORMAT(//,5x,
'ENDING DATE-TIME ',a3,1x,i2.2,
',',
110 & i4.4,2x,2(i2.2,
':'),i2.2,
'.',i3.3,2x,i3,2x,a3,2x,i8)
112 604
FORMAT(5x,
'PROGRAM ',a,
' HAS ENDED.')
113 c 604
FORMAT(5x,
'PROGRAM ',a,
' HAS ENDED. CRAY J916/2048')
114 c 604
FORMAT(5x,
'PROGRAM ',a,
' HAS ENDED. CRAY Y-MP EL2/256')
116 605
FORMAT(10(
'* . * . '))