7.58.2 EXIT Examples

Example 1: Exit from a function with a text message:

EXIT    MSGTXT('LANSA ended at user request')

Example 2: Exit from a function using a message identifier and message file:

EXIT  MSGID(USR0046) MSGF(QUSRMSG)

EXIT  MSGID(USR0167) MSGF(QUSRMSG.*LIBL)

EXIT  MSGID(USR8046) MSGF(QUSRMSG.USERLIB01)