When an error occurs BCHECK sets job switches (using the BS2000 command or macro MODIFY-JOB-SWITCHES). You can use these job switches in your procedures, but you should only provide a control automatism in the case that no job switch is set. In any other case it is necessary to consult the SYSLST protocol.
The following table describes which job switches BCHECK sets and which measures are necessary:
Type of error | Job | Measure |
WARNING | 30 | see the “Messages” manual |
ERROR | 31 | see the “Messages” manual |
SYSTEM-ERROR | 31 | see the “Messages” manual |
EASY (MINOR) LOCAL CONSISTENCY ERROR | 26 | Send error report to systems support; database operation is possible without restrictions |
FATAL (SERIOUS, STRUCTURAL) LOCAL CONSISTENCY ERROR | 27 | Send error report to systems support; database operation may possible depending on the kind of consistency error. Please contact systems support. |
GLOBAL CONSISTENCY ERROR | 28 | Send error report to systems support; database operation may possible depending on the kind of consistency error. Please contact systems support. |
Table 11: Usage of job switches together in BCHECK