1.3.3.6 End Program, End Class, and End Method Headers
The "end" headers are a combination of words, followed by a separator
X period, that indicate the end of a COBOL source program, class definition,
X or method definition. For example:
END PROGRAM PROGRAM-NAME.
X END CLASS CLASS-NAME.
X END METHOD METHOD-NAME.
-
For Programs
-
Program-name must be identical to the program-name of the
corresponding PROGRAM-ID paragraph. Every COBOL program, except an
outermost program that contains no nested programs and is not followed
by another batch program, must end with an END PROGRAM header.
-
X For Classes
-
X Class-name must be identical to the class-name of the corresponding
X CLASS-ID paragraph.
-
X For Methods
-
X Method-name must be identical to the method-name of the corresponding
X METHOD-ID paragraph.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.