CALL entry_name command (COBOL)

Calls an entry name in the application program. The entry name must be a valid external entry point name (that is, callable from other compile units).

Read syntax diagramSkip visual syntax diagram
>>-CALL--+-identifier-+--+----------------------------------+--->
         '-literal----'  |        .-----------------------. |   
                         |        V                       | |   
                         '-USING----| identifier_clause |-+-'   

>--;-----------------------------------------------------------><

identifier_clause

                                             .------------.     
                                             V            |     
|--+-+-------------------+--+-------------+----identifier-+-+---|
   | '-+----+--REFERENCE-'  '-ADDRESS--OF-'                 |   
   |   '-BY-'                                               |   
   |                  .---------------------------------.   |   
   |                  V                                 |   |   
   '-+----+--CONTENT----+-+-------------+--identifier-+-+---'   
     '-BY-'             | +-ADDRESS--OF-+             |         
                        | '-LENGTH--OF--'             |         
                        '-literal---------------------'         

identifier
A valid z/OS® Debugger COBOL identifier.
literal
A valid COBOL literal.

Usage notes

Example

Call the entry name sub1 passing the variables a, b, and c.
CALL "sub1" USING a b c;

Refer to the following topics for more information related to the material discussed in this topic.