|
|
SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 4 Intrinsics Used with No-Wait I/OIOWAIT3270 |
|
For SNA IMF/XL only. IOWAIT3270 waits for the completion of a previous no-wait I/O request.
Use IOWAIT3270 with no-wait MPE XL I/O. suspends processing until an outstanding I/O request completes. IOWAIT3270 calls IOWAIT, which is an MPE V and MPE XL intrinsic. See the MPE V Intrinsics Reference Manual or the MPE XL Intrinsics Reference Manual for more information. If you open an SNA IMF/XL device, specifying no-wait I/O in your call to the OPEN3270 intrinsic, you must follow every RECV3270 and TRAN3270 request with a call to either IODONTWAIT3270 or IOWAIT3270, before you can call any other intrinsic. You can delay the call to IODONTWAIT3270 or IOWAIT3270 as long as necessary to allow effective I/O and processing overlap. The IOWAIT3270 intrinsic acts the same as the IODONTWAIT3270 intrinsic with one exception: if IOWAIT3270 is called and no I/O has completed, the process that issued the call is suspended until some I/O completes; if your program calls IODONTWAIT3270, and no I/O has completed, control is returned to your program. You can call IOWAIT3270 from programs written in SPL, COBOL II, FORTRAN, C, or Pascal. INTEGER PROCEDURE IOWAIT3270 (FILENUM, TARGET, TCOUNT, CSTATION); INTEGER FILENUM,TCOUNT; LOGICAL CSTATION; LOGICAL ARRAY TARGET; OPTION VARIABLE; IOWAIT3270 has a functional return, as shown below in the calling sequence. The IOWAIT3270 intrinsic returns an integer that represents the terminalid for which the I/O completion occurred. If no completion occurred, zero is returned in FNUM.
|
|