COMMON SYSTEM COMPLETION CODES AND POSSIBLE CAUSES
A general explanation of each condition code is given and then possible causes are listed. A program that abends will not always produce one of these codes, but may indicate only a 'USER ERROR'. If this is the case then the programmer should determine which type of statement the program abended on and this will indicate the general category that the error is in. For example, if the program abended on a READ statement, then the error is probably a problem with a file. Once the general category of the error is known then each of the possible causes for that category can be checked.
001 - This error usually indicates that there is some problem with a file. It usually occurs on a READ, WRITE, OPEN or CLOSE statement.
0C1 - Operation Exception - The system attempted to execute a machine language instruction but it was not a valid operation.
0C4 - Protection Exception - The program attempted to reference an area of memory outside of its allowed area.
0C7 - Data Exception - This error indicates that a numeric field contained non-numeric data. It usually occurs on an arithmetic statement or a MOVE with numeric fields.
0CA - Decimal Overflow Exception - A field was too small to contain the result of an arithmetic operation.
0CB - Decimal Divide Exception - A quotient exceeds the size of the field it is being stored in.