ENTRY

Establish an entry point in a COBOL subprogram.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

 ENTRY literal
         .
         .
         .
[USING identifier1, ..., identifierN]

General Rules:

  1. S-COBOL considers the paragraph where the program enters the subprogram as a main-logic paragraph.
  2. Code ENTRY immediately after a paragraph name.
  3. Code ENTRY only in a paragraph that is not performed by any other paragraph within the subprogram. At the end of this paragraph, control returns to the calling program, so that you do not need to code EXIT PROGRAM.
  4. If the program reaches an EXIT PROGRAM before the end of the paragraph, control returns to the calling program.