Function codes for local check routines
IBM Health Checker for z/OS invokes a local check routine with a function code to indicate why it was called. All the function code calls will run under the same jobstep task, but you cannot assume that any of these function codes will run in the same task as a preceding function.
In general:
- PQE_Function_Code_Init (Init function) is called once for the life of the check (which lasts until the check is deleted).
- PQE_Function_Code_Check (Check function) is called at the specified interval for the check
- PQE_Function_Code_Cleanup (Cleanup function) is called right after the Check function
- PQE_Function_Code_Delete (Delete function) is called once at the end of the life of the check.
Function | Check and system actions | When is it invoked? | |
---|---|---|---|
Init | What should the check do? For PQE_Function_Code_Init, the check routine should validate that the environment is suitable for the check. If it is not, issue the HZSFMSG REQUEST=STOP macro to stop the check. If you obtain additional storage for the check, obtain it in Init processing and obtain it in jobstep-task owned storage. (You cannot assume that each function code runs under the same task.) |
|
|
What does
the system do? The system does the following setup steps to prepare
for multiple check iteration:
|
|||
Check | What should
the check do? For PQE_Function_Code_Check, the check routine should:
|
|
|
What does
the system do?
|
|||
Cleanup | What should
the check do? For PQE_Function_Code_Cleanup, the check routine
should clean up anything that you want cleaned between check iterations.
For example, cleanup anything that you are not cleaning up in Check
processing, or that must be cleaned up if Check processing abends. If you obtained resources owned by the current task during check function processing, check the PQE_CleanupInDifferentTaskThanCheck bit. If the bit is on, the system has already cleaned up the resources for you. |
|
|
What does the system do? The system obtains 4K of dynamic work area pointed to by field PQE_DynamicAreaAddr. The contents of this work area are not set to any particular value and are not preserved across check iterations. | |||
Delete | What should the check do? For PQE_Function_Code_Delete, the check routine should free any storage obtained during Init or Check processing that has not yet been freed. |
|
|
What does
the system do? The system:
|