LBASEC: Load program base of BAL shared object

This general macro loads the program base of the BAL shared object (BSO) that is currently processing for the issuing entry control block (ECB).

Last updated

Changed for PUT00.

Format

Read syntax diagramSkip visual syntax diagramlabelLBASECREG=reg
label
is a symbolic name that can be assigned to the macro statement.
REG=reg
specifies where the program base is to be placed, where reg is a register that contains the address of the program base of the ECB.

Entry requirements

Register 9 (R9) must contain the address of the ECB that is being processed.

Return conditions

  • Control is returned to the next sequential instruction (NSI).
  • The condition code remains unchanged.
  • The specified register contains the base of the program. All other registers are preserved.

Programming considerations

  • For information about macro register conventions, see Register conventions.
  • The LBASEC macro is not traced by macro trace logging.
  • The LBASEC macro is restricted to ECB-controlled BSOs.

Examples

The following example sets the contents of R8 to the program base of the ECB.
LBASEC REG=R8

Related information

See LREGSC: Restore registers from the ECB register save area for more information.