MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 7 353
Command Definitions (HP32208-HPLOACNMPROC)
HPERRMSG
HPERRMSG
NM callable only.
Obtains or displays error messages from the system catalog.
Syntax
I32V I32V I32V I32V
HPERRMSG(
displaycode
,
depth,errorproc,errornum
,
CA I16 I32
buffer,buflength,status
);
Parameters
displaycode
32-bit signed integer by value (required)
Specifies the operation to be performed:
Value Meaning
1 Dump the error stack to $STDLIST and display any errors
that are detected by HPERRMSG (returned in
status
).
2 Display to $STDLIST the error message corresponding to
the value in
errornum
and display any errors that are
detected by HPERRMSG (returned in
status
).
3 Obtain the error message corresponding to the value in
errornum
and place it in the buffer specified by
buffer
.
4 Display to $STDLIST the number of stack errors specified
in
depth
and display any errors detected by HPERRMSG
(returned in
status
).
5 Display to $STDLIST the error message corresponding to
errornum
. Do not display any errors that are detected by
HPERRMSG (returned in
status
), but save information in
the
status
parameter.
6 Obtain the subsystem/error identification number
corresponding to the error number in
errornum
, and place
it in the buffer specified by
buffer
.
7 Get messages for the number of stack errors specified in
depth
and place them in the buffer specified by
buffer
.
The contents of
buffer
contains the same information as
if the user had specified
displaycode
4, including errors
that are detected by HPERRMSG. All messages are
separated by carriage return/line feed characters.
8 Dump the error stack to the buffer specified by
buffer
.
The result is the same as with
displaycode
1, except