#pragma exception_handler (UNEXPECTED_HDLR, ffdc_info, ð, _C2￿_MH_ESCAPE)

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\ Set the pointer to null, then try to increment. This

will

\/

/\

generate an MCH36ð1

error that will be trapped by the

 

\/

/\

unexpected handler.

 

 

\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ nulptr = NULL;

nulptr++;

#pragma disable_handler

} /\ main \/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\

FUNCTION NAME:

UNEXPECTED_HDLR

\/

/\

 

 

\/

/\

FUNCTION:

Handle unexpected exception. This exception

\/

/\

 

handler is used to log the software error via

\/

/\

 

FFDC.

\/

/\

 

 

\/

/\

INPUT:

Interrupt handler information

\/

/\

 

 

\/

/\

OUTPUT:

NONE

\/

/\

 

 

\/

/\

EXCEPTIONS:

CPFxxxx - All unexpected CPF exceptions

\/

/\

 

MCHxxxx - All unexpected MCH exceptions

\/

/\

 

 

\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ void UNEXPECTED_HDLR(_INTRPT_Hndlr_Parms_T \errmsg)

{

int

i = ð,

 

MsgLen = ð,

 

number_of_keys = ð;

char

pgm_name[3ð],

 

context_name[3ð],

 

lib_name[5],

 

symptom_msg_data[MESSAGE_LEN],

 

symptom_msg_keyword[MSG_SYMPTOM_LEN];

ffdc_info_t

\ffdc_info;

Qpd_Data_t

data_key,

 

data_key2;

Qpd_Key_Pointer_t

ffdc_keys[MAX_KEYS];

Qpd_Suspected_Module_t module_key;

Qpd_Symptom_t

symptom_msg_key;

Qus_EC_t

ErrorCode;

ErrorCode.Bytes_Provided = ð;

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\ Getting pointer in local storage to the Communications A￿rea. \/ /\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ ffdc_info = (ffdc_info_t \)(errmsg->Com_Area);

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ /\ Need to notify message handler that we will handle the er￿ror. \/

Chapter 6. Original Program Model (OPM) and Integrated Language Environment (ILE)6-9Difference

Page 137
Image 137
IBM Version 4 manual SymptommsgkeywordMSGSYMPTOMLEN