PSID Handling for Functions Not Requiring Connect

Some functions can interact with a host presentation space whether it is connected or not. These functions allow you to specify the PSID in the calling data string parameter. They are as follows:
  • Connect Presentation Space (1)
  • Convert Position RowCol (99)
  • Get Key (51)
  • Post Intercept Status (52)
  • Query Close Intercept (42)
  • Query Host Update (24)
  • Query Session Status (22)
  • Start Close Intercept (41)
  • Start Host Notification (23)
  • Start Keystroke Intercept (50)
  • Stop Close Intercept (43)
  • Stop Host Notification (25)
  • Stop Keystroke Intercept (53)
All except the first two of these functions allow you to specify the PSID using either:
  • A letter A through Z
  • A blank or a null

The first two functions require that a letter be used to specify the PSID.

When there is no host-connected presentation space, the following rules apply:
  • The function can interact with any host presentation space if a letter, not a blank or a null, is used to specify the PSID.
  • If a blank or a null is used to specify the PSID, a return code of 1 is generated. The function does not execute.
  • Using a letter to specify the PSID does not establish a host-connected presentation space, except on a connect PS request.
When there is one host-connected presentation space, the following rules apply:
  • The function can interact with any host presentation space if a letter is used to specify the PSID.
  • If a blank or a null is used to specify the PSID, the function operates in the presentation space identified in the most recent call to the Connect Presentation Space (1) function.
  • Using a letter to specify the PSID does not change the established PSID of the host-connected presentation space, except on a connect PS request.
The following functions are available for printer sessions:
  • Start Host Notification (23)
  • Query Host Update (24)
  • Stop Host Notification (25)