END PROGRAM Header
The END PROGRAM header indicates the end of a named COBOL source program. It also separates each program in a sequence of source programs. An END PROGRAM header is optional for the last program in a sequence of source programs only if that program does not contain any nested programs.
END PROGRAM Header - Format >>-END PROGRAM--+-program-name-1-+--.-------------------------->< | (1) | '-literal-1------'
Notes:
- IBM® Extension
- program-name-1
- A user-defined word that must be identical to a program-name declared in a preceding PROGRAM-ID paragraph. Refer to program-name in PROGRAM-ID Paragraph for the rules for formation of the program-name.
IBM Extension
IBM Extension
- literal-1
- Must be a nonnumeric literal. Refer to literal in PROGRAM-ID Paragraph for the rules for formation of the literal.
End of IBM Extension
