COBOL Manual for TNS and TNS/R Programs
Identification Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
5-6
DATE-COMPILED Paragraph
DATE-COMPILED
must begin in area A, have a space in the indicator field, be completely contained
on a single program text line, and end with a period followed by a space.
If you split the reserved word DATE-COMPILED across program lines, the compiler
handles the paragraph as a simple comment-entry and does not replace its
contents with the date and time of compilation.
comment-entry
is any combination of characters from the ASCII character set.
The first keyword following a comment-entry must start on a program text line
that has a space character in its indicator field. This keyword must start in area A
and be preceded by space characters only.
A comment-entry cannot be continued with the hyphen convention; however, it
can be implicitly continued onto additional program text lines if area A of those
lines contains space characters only.
Except for checking its syntax, the compiler ignores comment-entry and
replaces it with the date and time of the compilation, which it prints on the listing in
this format:
DATE-COMPILED. yy/mm/dd - hh:mm:ss
where:
Number Range Represents
yy 00 through 99 Year
mm 01 through 12 Month
dd 01 through 31 Day
hh 00 through 23 Hour
ss 00 through 59 Second
Example 5-3. DATE-COMPILED Paragraph
Source text:
DATE-COMPILED. This is the final version.
Listing text:
DATE-COMPILED. 92/01/08 - 14:45:00