BPX1ASP (aio_suspend) example

The following code will wait up to 10 seconds for one of the events specified in the AIOCB. For the callable service, see aio_suspend (BPX1ASP, BPX4ASP) — Wait for an asynchronous I/O request. AMODE 64 callers use BPX4ASP (aio_suspend) example.
                                              
         LA    R15,AIO                                                  
         ST    R15,ARGSLST                                              
         MVC   ARGCNT,=F'1'                                             
         MVC   SECONDS,=F'10'                                           
         XC    NANOSECONDS,NANOSECONDS                                  
         SPACE ,                                                        
         CALL  BPX1ASP,              Suspend for an aio request        +
               (ARGSLST,             Input: List of pointers to AIOCBs +
               ARGCNT,               Input: Count of pointers in list  +
               SECONDS,              Input: Seconds to wait            +
               NANOSECONDS,          Input: Nanoseconds to wait        +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------