|
|
SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Intrinsics Used with Standard MPE
I/OTRAN3270 |
|
TRAN3270 emulates pressing one of the transmit keys (listed below) on a 3278 display station (LU.T2) or a 3287 printer (LU.T1).
Using the TRAN3270 intrinsic is equivalent to pressing one of the 3278 terminal or 3287 printer keys, which causes changed screen data to be sent to the host when it polls the devices. TRAN3270 emulates these keys:
The TRAN3270 also allows you to specify a cursor address along with the AID to be sent to the host. If the TRAN3270 intrinsic executes successfully, or if it returns a result code of 14, 16, or 30, it automatically disables the keyboard, preventing your program from calling any intrinsics that write to the internal screen image. After calling the TRAN3270 intrinsic, the RECV3270 intrinsic is usually the first SNA IMF intrinsic you call. Normally, the host reenables the keyboard when it sends data in response to your transmission. If you are not expecting the host to respond to your transmission, or if the TRAN3270 intrinsic fails with result code 14, 16, or 30, you can reenable input by calling the RESET3270 intrinsic. For SNA IMF/V, if the host modifies your internal screen image just before or just after you call TRAN3270, new host data might arrive before the TRAN3270 intrinsic completes execution. You will receive a result code 9, indicating that the host has modified your internal screen image, and your data will not be sent. Your program must then call the RECV3270 intrinsic, which will complete immediately. In transparent mode, SNA IMF delays sending a positive response to a host transmission until your program calls either RECV3270 or TRAN3270. If your program has no data to send or receive, you can call TRAN3270 with an aid value of -3 to send a positive response to the host. In transparent mode, you can inhibit sending the AID key or the cursor address as follows:
During LU.T2 sessions in transparent mode, if you are not suppressing the cursor, and if you are sending a [CLEAR] or PA key, call WRITESTREAM with the outbuflen parameter set to 0 before calling TRAN3270. In transparent mode, SNA IMF will not check the AID key to determine whether it is a [CLEAR] or PA key. When you specify the [CLEAR] key, the internal screen image is cleared (filled with null characters) before the [CLEAR] AID is sent to the host. When you send the [CLEAR] and PA keys in non-transparent mode, only the AID is sent to the host; no data is sent. Call the TRAN3270 intrinsic in transparent or non-transparent mode. CALL "CTRAN3270" USING TERMINALID AID CURSORROW CURSORCOLUMN RESULT. (on MPE V and in compatibility mode on MPE XL) CALL INTRINSIC "TRAN3270" USING TERMINALID AID CURSORROW CURSORCOLUMN RESULT. (on MPE V and in compatibility mode on MPE XL) All parameters are numeric data items. CALL TRAN3270 (TERMINALID, AID, CURSORROW, CURSORCOLUMN, RESULT) All parameters are integer variables. CALL BTRAN3270 (T, A9, R9, C9, R) (on MPE V and in compatibility mode on MPE XL) CALL TRAN3270 (T, A9, R9, C9, R) (in native mode on MPE XL) All parameters are integer variables. TRAN3270 (TERMINALID, AID, CURSORROW, CURSORCOLUMN, RESULT) All parameters are integer variables. TRAN3270 (TERMINALID, AID, CURSORROW, CURSORCOLUMN, RESULT); All parameters are short integer variables. TRAN3270 (&TERMINALID, &AID, &CURSORROW, &CURSORCOLUMN, &RESULT); All parameters are of type short. 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”
|
|