This general macro is used to write an error record to SYS1.LOGREC
for subsequent processing by the Environmental Error Record Editing and
Printing Program (EREP).
Format
- label
- A symbolic name can be assigned to the macro statement.
- symbol1
- The label of the routine in the current program to which control will be
passed if the recording is successful.
- EXIT
- The macro is to exit after successful recording.
Entry Requirements
Before issuing the macro, do the following:
- Initialize register 0 (R0) to the two's complement of the record
length.
- Initialize R1 to the address of the record.
Return Conditions
- If recording is unsuccessful, control is returned to the instruction
following the macro call.
- If recording is successful, control is passed to the routine specified as
symbol1, or the EXITC macro is issued if the EXIT parameter was coded.
- The contents of R14 and R15 are unknown. The contents of all other
registers are preserved across this macro call.
Programming Considerations
- This macro can be executed only in the main I-stream.
- If TPF is running under the control of VM/XA (*), the macro call will be
trapped, the error record written to SYS1.LOGREC, and control passed to
the routine specified by symbol1.
- If TPF is running native or if VM/XA fails to write the record, the macro
call will be handled by TPF and control will be passed to the next sequential
instruction plus 4 after the macro call. Then it is the
programmer's responsibility to write the record to the real-time dump
tape.
Examples
None.