|
|
SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Intrinsics Used with Standard MPE
I/OERR3270 |
|
ERR3270 returns the error message associated with a given intrinsic result code.
ERR3270 takes the result code from a previous intrinsic call and returns the message that corresponds to that result code. You pass the result code to the ERR3270 intrinsic in the errorcode parameter, and the corresponding message is returned in the msgbuf parameter. Appendix A “Intrinsic Result Codes” contains a list of all intrinsic result codes, their corresponding messages, their probable causes, and the recommended actions for resolving problems. SNA IMF messages are kept in a message catalog named CATIMF.PUB.SYS. With the appropriate MPE file access capabilities, you may change the messages in CATIMF to suit your needs. The procedure for changing diagnostic messages is explained in the MPE V Intrinsics Reference Manual. Use the ERR3270 intrinsic in transparent or non-transparent mode. CALL "CERR3270" USING ERRORCODE MSGBUF MSGLEN RESULT. (on MPE V and in compatibility mode on MPE XL) CALL INTRINSIC "ERR3270" USING ERRORCODE MSGBUF MSGLEN RESULT. (in native mode on MPE XL) All parameters are numeric data items except MSGBUF, which is an alphanumeric data item. CALL ERR3270 (ERRORCODE, MSGBUF, MSGLEN, RESULT) All parameters are integer variables except MSGBUF, which is a character array. CALL BERR3270 (E, M$, L4, R) (on MPE V and in compatibility mode on MPE XL) CALL ERR3270 (E, M$, L4, R) (in native mode on MPE XL) All parameters are integer variables except M$, which is a string variable. ERR3270 (ERRORCODE, MSGBUF, MSGLEN, RESULT) All parameters are integer variables except MSGBUF, which is a byte array. ERR3270 (ERRORCODE, MSGBUF, MSGLEN, RESULT); All parameters are short integers except MSGBUF, which is a packed array of character. ERR3270 (&ERRORCODE, MSGBUF, &MSGLEN, &RESULT); All parameters are of type short except MSGBUF, which is an array of characters (a pointer to a char). Following are excerpts from a Pascal program that calls SNA IMF intrinsics. For examples of complete Pascal programs in non-transparent and transparent modes, see Appendix F “Sample Programs”
|
|