Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

3.1 Identification Division



The Identification Division must be the first division in every COBOL
X source program, class definition, and method definition. It names the
X program, class, or method, and can include the date the program, class, or
X method was written, the date of compilation, and other such documentary information. The Identification Division must begin with the words
X IDENTIFICATION DIVISION or ID DIVISION followed by a separator period.


Program IDENTIFICATION DIVISION
For a program, the first paragraph of the Identification Division must be the PROGRAM-ID paragraph.


X The other paragraphs are optional, and as an IBM extension, can appear
X in any order.


X Class IDENTIFICATION DIVISION

X For a class, the first paragraph of the Identification Division must
X be the CLASS-ID paragraph.


X The other paragraphs are optional, and can appear in any order.


X Method IDENTIFICATION DIVISION

X For a method, the first paragraph of the Identification Division must
X be the METHOD-ID paragraph.


X The other paragraphs are optional, and can appear in any order.


    ___ Format--Program Identification Division ____________________________ 
   |                                                                        |
   |                                                (1)                     |
   | >>__ _IDENTIFICATION_ __DIVISION.__PROGRAM-ID._____program-name______> |
   |     |_ ID ___________|                                                 |
   |                                                                        |
   |                                                        (1)             |
   | >__ ______________________________________________ __._______________> |
   |    |_ ____ __ _ RECURSIVE _________ __ _________ _|                    |
   |      |_IS_|  |_COMMON__ _________ _|  |_PROGRAM_|                      |
   |              |         |_INITIAL_| |                                   |
   |              |_INITIAL__ ________ _|                                   |
   |                         |_COMMON_|                                     |
   |                                                                        |
   | >__ ___________________________________ _____________________________> |
   |    |         (1)                       |                               |
   |    |_AUTHOR._____ ___________________ _|                               |
   |                  | <_______________  |                                 |
   |                  |___comment-entry_|_|                                 |
   |                                                                        |
   | >__ _________________________________________ _______________________> |
   |    |               (1)                       |                         |
   |    |_INSTALLATION._____ ___________________ _|                         |
   |                        | <_______________  |                           |
   |                        |___comment-entry_|_|                           |
   |                                                                        |
   | >__ _________________________________________ _______________________> |
   |    |               (1)                       |                         |
   |    |_DATE-WRITTEN._____ ___________________ _|                         |
   |                        | <_______________  |                           |
   |                        |___comment-entry_|_|                           |
   |                                                                        |
   | >__ __________________________________________ ______________________> |
   |    |                (1)                       |                        |
   |    |_DATE-COMPILED._____ ___________________ _|                        |
   |                         | <_______________  |                          |
   |                         |___comment-entry_|_|                          |
   |                                                                        |
   | >__ _____________________________________ __________________________>< |
   |    |           (1)                       |                             |
   |    |_SECURITY._____ ___________________ _|                             |
   |                    | <_______________  |                               |
   |                    |___comment-entry_|_|                               |
   |                                                                        |
   | Note:                                                                  |
 X | (1)  This separator period is optional as an IBM extension.            |
   |                                                                        |
   |________________________________________________________________________|


 X  ___ Format--Class Identification Division _________________________________________ 
 X |                                                                                   |
 X | >>__ _IDENTIFICATION DIVISION_ __CLASS-ID.__class-name-1________________________> |
 X |     |_ID DIVISION_____________|                                                   |
   |                                                                                   |
 X |              <______________                                                      |
 X | >__INHERITS____class-name-2_|__ _________________________________ __.___________> |
 X |                                |_METACLASS__ ____ __class-name-3_|                |
 X |                                             |_IS_|                                |
   |                                                                                   |
 X | >__ ________________________________ ___________________________________________> |
 X |    |_AUTHOR.__ ___________________ _|                                             |
 X |               | <_______________  |                                               |
 X |               |___comment-entry_|_|                                               |
   |                                                                                   |
 X | >__ ______________________________________ _____________________________________> |
 X |    |_INSTALLATION.__ ___________________ _|                                       |
 X |                     | <_______________  |                                         |
 X |                     |___comment-entry_|_|                                         |
   |                                                                                   |
 X | >__ ______________________________________ _____________________________________> |
 X |    |_DATE-WRITTEN.__ ___________________ _|                                       |
 X |                     | <_______________  |                                         |
 X |                     |___comment-entry_|_|                                         |
   |                                                                                   |
 X | >__ _______________________________________ ____________________________________> |
 X |    |_DATE-COMPILED.__ ___________________ _|                                      |
 X |                      | <_______________  |                                        |
 X |                      |___comment-entry_|_|                                        |
   |                                                                                   |
 X | >__ __________________________________ ________________________________________>< |
 X |    |_SECURITY.__ ___________________ _|                                           |
 X |                 | <_______________  |                                             |
 X |                 |___comment-entry_|_|                                             |
   |                                                                                   |
   |___________________________________________________________________________________|

 X  ___ Format--Method Identification Division _____________________________ 
 X |                                                                        |
 X | >>__ _IDENTIFICATION DIVISION_ ______________________________________> |
 X |     |_ID DIVISION_____________|                                        |
   |                                                                        |
 X | >__METHOD-ID.__method-name-1__ ______________________________ __.____> |
 X |                               |_ ____ __ ________ __OVERRIDE_|         |
 X |                                 |_IS_|  |_METHOD_|                     |
   |                                                                        |
 X | >__ ________________________________ ________________________________> |
 X |    |_AUTHOR.__ ___________________ _|                                  |
 X |               | <_______________  |                                    |
 X |               |___comment-entry_|_|                                    |
   |                                                                        |
 X | >__ ______________________________________ __________________________> |
 X |    |_INSTALLATION.__ ___________________ _|                            |
 X |                     | <_______________  |                              |
 X |                     |___comment-entry_|_|                              |
   |                                                                        |
 X | >__ ______________________________________ __________________________> |
 X |    |_DATE-WRITTEN.__ ___________________ _|                            |
 X |                     | <_______________  |                              |
 X |                     |___comment-entry_|_|                              |
   |                                                                        |
 X | >__ _______________________________________ _________________________> |
 X |    |_DATE-COMPILED.__ ___________________ _|                           |
 X |                      | <_______________  |                             |
 X |                      |___comment-entry_|_|                             |
   |                                                                        |
 X | >__ __________________________________ _____________________________>< |
 X |    |_SECURITY.__ ___________________ _|                                |
 X |                 | <_______________  |                                  |
 X |                 |___comment-entry_|_|                                  |
   |                                                                        |
   |________________________________________________________________________|

Subtopics:



Previous Topic Next Topic © 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.