HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ENTRY instruction

HLASM Language Reference
SC26-4940-06

The ENTRY instruction identifies symbols defined in this source module as “external” so that they can be referred to by another source module. These symbols are entry symbols.
Read syntax diagramSkip visual syntax diagram
                               .-,-----------.   
                               V             |   
>>-+-----------------+--ENTRY----entry_point-+-----------------><
   '-sequence_symbol-'                           

sequence_symbol
Is a sequence symbol.
entry_point
Is a relocatable symbol that:
  • Is a valid symbol
  • Is defined in an executable control section
  • Is not defined in a dummy control section, a common control section, or an external control section

Up to 65535 individual control sections, external symbols, and external dummy sections can be defined in a source module. However, the practical maximum number depends on the amount of table storage available to the program that links the object module.

The assembler lists each entry symbol of a source module in an external symbol dictionary, along with entries for external symbols, common control sections, parts, and external control sections.

A symbol used as the name entry of a START or CSECT instruction is also automatically considered an entry symbol, and does not have to be identified by an ENTRY instruction.

A symbol identified by an ENTRY instruction should not also be declared by an EXTRN instruction, but it can be referenced in the nominal value of a V-type address constant in the same source module.

The length attribute value of entry symbols is the same as the length attribute value of the symbol at its point of definition.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014