
- CICS Tutorial
- CICS - Home
- CICS - Overview
- CICS - Environment
- CICS - Basic Terms
- CICS - Nucleus
- CICS - Transactions
- CICS - COBOL Basics
- CICS - BMS
- CICS - MAP
- CICS - Interface Block
- CICS - Pseudo Programming
- CICS - Aid Keys
- CICS - File Handling
- CICS - Error Handling
- CICS - Control Operations
- CICS - Temporary Storage
- CICS - Intercommunication
- CICS - Status Codes
- CICS - Interview Questions
- CICS Useful Resources
- CICS - Quick Guide
- CICS - Useful Resources
- CICS - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CICS - Abend
Abend command is used to terminate the task intentionally. Using Abend command, we can set a user-defined abend code. Following is the syntax of Abend command −
Syntax
EXEC CICS ABEND ABCODE(name) END-EXEC.
Example
The following example shows how to use the Abend command in a program. It will abend when the program reaches this paragraph with the user-defined abend code. In the following example, it will abend with abend code D100 −
IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. PROCEDURE DIVISION. EXEC CICS ABEND ABCODE(D100) END-EXEC.
cics_error_handling.htm
Advertisements