Previous Topic: Return Code, Register 15:Next Topic: MIMINIXT Exit Routine


Issuing Messages from MIMCMDXT

When sending a message from the MIMCMDXT routine to the console or CMS user who issued a command, use the message subroutine that is provided at offset +C of the exit-specific parameter list. Here is the mandatory code for the message subroutine:

CMDEXIT  SAVE    (14,12)
         LR      R12,R15
         USING   CMDEXIT,R12
         LR      R5,R1           *Saves input parameters
         ST      R13,BIGSAVE+4   *Preserves the save area pointer
         LA      R13,BIGSAVE     *Points to the large save area
         ...
         LA      R1,LFORMWTO     *Points at the list-form of the 
                                 *WTO message
         L       R15,12(R5)      *Points to the message subroutine
         BALR    R14,R15         *Calls the message subroutine
BIGSAVE  DS      72F             *Save area and workspace

This message is recorded in the TRACE MIM file if the TRACE feature is active.