Checks the status of the host presentation space (PS).
This function requires a prerequisite call to the CONNECT PRESENTATION SPACE (1) function.
hllc (func, apistring, len, ret) int *func; char *apistring; int *len; int *ret;
Supply the following parameters to invoke the WAIT function:
If the controller or host system is busy, the WAIT function causes HLLAPI to wait for a specified time to see if the condition clears. The specified time is determined by options in the SET SESSION PARAMETERS (9) function.
The WAIT function checks the status of the host PS. If the controller or host system is busy, the WAIT function causes HLLAPI to wait for a specified time to see if the condition clears. The WAIT function gives functions such as the SEND KEY (3) function enough time to complete. Use the SET SESSION PARAMETERS (9) function to request the TWAIT, LWAIT, or the NWAIT option. Each option determines a specified amount of time that the WAIT function uses.
When the return code is 0 and the keyboard unlocks, the WAIT function has been executed. However, the original transaction may not have been completed. Use the SEARCH FIELD (30) function, or the SEARCH PRESENTATION SPACE (6) function combined with the WAIT function, to look for expected keyword prompts.
The WAIT function determines if the host Operator Information Area (OIA) is inhibited.
Note: The 3270 terminal emulation sessions wait until a host response occurs; the response is indicated when an XSYSTEM or X is turned off in the OIA.
CONNECT PRESENTATION SPACE (1) function , SEARCH FIELD (30) function , SEARCH PRESENTATION SPACE (6) function , SEND KEY (3) function and SET SESSION PARAMETERS (9) function .