HFZRegisterFaultEntry command

The HFZRegisterFaultEntry command can be used to register a fault entry at any time during analysis of an MVS™ dump data set, for example a CICS® system dump. This command allows the early creation of a fault entry in a history file, without the need to first exit interactive reanalysis. An installation can choose to automate the registration fault entry creation by issuing the HFZRegisterFaultEntry command from, for example, an Analysis Control user exit, or, alternatively, users can invoke a Formatting user exit on demand to issue this command during interactive reanalysis.

  1. This command should not be used to register fault entries in a dump registration Analysis Control or Notification user exit, since doing so could result in extra unwanted fault entries being created. The HFZXTSEL dump registration processing automatically creates a fault entry, even if no user exit is used.
  2. As an alternative to using the HFZRegisterFaultEntry command, the GenerateSavedReport option can be used to create a fault entry in the current history file for an MVS dump analyzed in batch. For details, see GenerateSavedReport.
Read syntax diagramSkip visual syntax diagram


Specifies the history file in which the registration fault entry should be created. For interactive reanalysis, if this parameter is not specified, or if the user does not have UPDATE access to the specified history file, then a prompt is issued to allow the specification of the history file to be used.

For batch reanalysis, this parameter must be specified, otherwise, RC=4 is issued.

Return codes

The HFZRegisterFaultEntry command provides the following return codes:
Successful completion.
A fault entry already exists, or request canceled by user via interactive prompt.
Command syntax error. An explanation of the error is written to the HFZTRACE DDname.


Figure 1. HFZRegisterFaultEntry command example
/* REXX */

/* Create registration fault entry in history file MY.HIST */
ENV.USER_TITLE = 'My fault!'
dsn = 'my.hist'
"HFZRegisterFaultEntry HFZHIST("dsn")"
if rc <> 0 then
  "HFZWTO HFZRegisterFaultEntry failed, rc="rc
exit 0

See Sample Formatting user exits for another example of the HFZRegisterFaultEntry command usage.