Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Debugging checks IBM Health Checker for z/OS User's Guide SC23-6843-02 |
|
Naturally, we hope you'll never need this section and that all your checks will run perfectly the very first time. However, if you do run into trouble, this section will help you debug your check routine and HZSADDCHECK exit routine. Was my check added to the system? Use the F hzsproc,DISPLAY CHECK(checkowner,checkname) to display the check you're adding to the system. If your check shows up, it was successfully added to the system. If it does not show up, it was not added to the system. You can also check the return code from the HZSADDCK invocation in your HZSADDCHECK exit routine (for local checks) or check routine (for remote checks). A return code greater than 4 often indicates that there was a problem adding the check to the system. See HZSADDCK macro — HZS add a check. Turn on debug mode: Running in debug mode can
help you debug your check, because in debug mode:
Create a recovery routine for your check routine if you need additional diagnostic data for your check routine. See Establishing a recovery routine for a check. Debug HZSFMSG abends: If the system finds an error in a HZSFMSG macro call to issue a message, the system issues system abend X'290' with a unique reason code and creates a logrec error record. See the information for abend X'290' in z/OS MVS System Codes for a description of the abend reason codes. If the abend is caused by an incorrect macro call, the system issues
the following accompanying information:
Where is my check routine? I need to locate it for debugging. If
you do not receive an abend for a problem, you can locate a local
check routine and message table (to use in a SLIP trap, for example)
using the DIAG parameter on the F hzsproc,DISPLAY
command. For example, you can use the f hzsproc,display,check(IBMGRS,grs_mode),detail,diag command.
Note the diagnostic information, including the location of the check
routine and message table in the output example below:
Where is my HZSADDCHECK exit routine? If you need to locate
the address of your HZSADDCHECK exit routine for a local check, to
set a SLIP trap, for example, use the display command following:
The
system issues message CSV464I displaying information about the exit,
including the exit entry point address, the load point address of
the exit routine module, and other diagnostic information for exit
routine.Using SLIP traps for debugging: If you need to set a SLIP trap for either your check routine or HZSADDCHECK exit routine, we suggest that you set a SLIP trap on any error event in the IBM Health Checker for z/OS address space instead of setting it on an abend X'290'. This will give you the information you need to handle both the X'290' abend and any other unexpected problem. Use the two hints directly above this one to find the addresses of your check routine and HZSADDCHECK exit routine, for use in setting SLIP traps. |
Copyright IBM Corporation 1990, 2014
|