Asynchronous Requests

When Write Structured Fields is requested asynchronously (the M option in the data string), the application cannot assume:
  • The return code is correct
  • The data in the communications buffer (write buffer) is correct
  • The host is no longer processing the Write Structured Fields request
When requested asynchronously with the M option, EHLLAPI returns the following values:
  • A 16-bit request ID in positions 13–14 (9–10 for standard interface) of the data string
  • Task ID of asynchronous message mode in position 17–18 (11–12 for standard interface)

These are used to complete the asynchronous Write Structured Fields call.