#ABEND -- terminates the issuing task abnormally

The #ABEND statement terminates the issuing task abnormally and specifies whether the system invokes previously established abend exits or writes a task dump to the log file.
idmscu19
The #ABEND statement terminates the issuing task abnormally and specifies whether the system invokes previously established abend exits or writes a task dump to the log file.
After completion of the #ABEND function, control is returned to the system.
This article describes the following information:
2
2
Syntax
  ►►─┬─────────┬─ #ABEND ABCODE=
abend-code-pointer
 ─────────────────────────────►    └─ 
label
 ─┘  ►─┬────────────────────────┬─────────────────────────────────────────────────►    └─ ,STAE= ─┬─ INVOKE ◄ ─┬┘               └─ IGNORE ───┘  ►─┬─────────────────────┬────────────────────────────────────────────────────►◄    └─ ,DUMP= ─┬─ NO ◄ ──┬┘               └─ YES ───┘  
Parameters
ABCODE=
Specifies a 4-character user-defined abend code.
abend-code
A register pointing to a field that contains the abend code, the symbol name of a user-defined field containing the code, or the abend-code literal enclosed in single quotation marks.
Because the specified abend code appears in the system log and is displayed at the task's terminal, you should not use DC/UCF system abend codes.
STAE=INVOKE/IGNORE
Specifies whether the system invokes or ignores abend routines that were previously established by #STAE requests; the default is INVOKE.
DUMP=NO/YES
Specifies whether the system writes a formatted task dump to the DC/UCF log file. The default is NO.
Status Codes
The #ABEND request is unconditional; control is passed to the DC/UCF program control module.
Example
Terminating the issuing task
The following example of the #ABEND statement terminates the issuing task abnormally and specifies the register that points to a field in the application program containing the abend code. This statement requests that the system ignore abend routines and to write a task dump to the DC/UCF log file. Control returns to the system after completion of the #ABEND statement.
#ABEND ABCODE=(R12),STAE=IGNORE,DUMP=YES