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

X 6.2.12 ENTRY Statement




X The ENTRY statement establishes an alternate entry point into a COBOL
X called subprogram.


X The ENTRY statement cannot be used in:


X When a CALL statement naming the alternate entry point is executed in a
X calling program, control is transferred to the next executable statement
X following the ENTRY statement.


 X  ___ Format _____________________________________________________________ 
 X |                                                                        |
 X | >>___ENTRY__literal-1________________________________________________> |
   |                                                                        |
 X | >__ ____________________________________________________ __.________>< |
 X |    |        <_________________________________________  |              |
 X |    |                                  <____________   | |              |
 X |    |_USING_____ ___________________ ___identifier-1|__|_|              |
 X |                |_ ____ __REFERENCE_|                                   |
 X |                | |_BY_|            |                                   |
 X |                |_ ____ __VALUE_____|                                   |
 X |                  |_BY_|                                                |
   |                                                                        |
   |________________________________________________________________________|

X literal

X Must be nonnumeric and conform to the rules for the formation of a
X program-name in the outermost program (see "PROGRAM-ID Paragraph" in
X topic 3.1.1).


X Must not match the program-id or any other ENTRY literal in this
X program.


X Must not be a figurative constant.


X Execution of the called program begins at the first executable statement
X following the ENTRY statement whose literal corresponds to the CALL
X statement literal or identifier.


X The entry point name on the ENTRY statement can be affected by the PGMNAME
X compiler option. For details, see the IBM COBOL Programming Guide for
X your platform.

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.