VMS Help  —  RTL Routines, LIB$  LIB$ESTABLISH
    The Establish a Condition Handler routine moves the address of
    a condition handling routine (which can be a user-written or a
    library routine) to longword 0 of the stack frame of the caller
    of LIB$ESTABLISH.

    This routine is not available to native OpenVMS Alpha and I64
    programs but is recognized and handled appropriately by most VSI
    high-level language compilers.

    Format

      LIB$ESTABLISH  new-handler

1  –  Returns

    OpenVMS usage:routine
    type:         procedure value
    access:       write only
    mechanism:    by reference

    Previous contents of SF$A_HANDLER (longword 0) of the caller's
    stack frame; zero if no handler existed.

2  –  Argument

 new-handler

    OpenVMS usage:procedure
    type:         procedure value
    access:       read only
    mechanism:    by value

    Routine to be set up as the condition handler. The new-handler
    argument is the address of the procedure value to this routine.
Close Help