Synchronous and Asynchronous Processing

The statements used to establish SNA sessions and to exchange data can be issued as either synchronous or asynchronous requests. An example of these requests can be seen below:
idmscu19
The statements used to establish SNA sessions and to exchange data can be issued as either synchronous or asynchronous requests. An example of these requests can be seen below:
          POST_ON_RECEIPT             WAIT RESOURCE_LIST
For more information about synchronous and asynchronous processing, see #TREQ.
When establishing a conversation you can request:
  • Synchronous
    processing by using the OPTNS=WAIT parameter of the #TREQ ALLOC statement.
  • Asynchronous
    processing by using #TREQ ALLOC,OPTNS=NOWAIT. You must issue a #TREQ CHECK, specifying the LTE address of the remote LU, prior to any other I/O requests for that conversation.
    For more information about the #TREQ ALLOC statement, see Allocating a Session in this section. 
When you are issuing #TREQ input and output statements, you can request:
  • Synchronous
    processing by using #TREQ GET, PUT, and PUTGET.
  • Asynchronous
    processing by using #TREQ WRITE, READ, and WRITREAD. The #WAIT statement is used to wait on an ECB list. All asynchronous requests must be followed by a #TREQ CHECK statement before any other I/O requests can be made for that session.