At 01:42 -0400 on 09/12/10, michealbutz wrote about Re: Issuing WTOR SVC In Multitask Environment:

       WTOR   'WAIT AND DON'T GIVE CONTROL TO ANOTHER TASK.',REPLY,1,RESPECB
So instead of doing a WAIT ECB=RESPECB AFTER THE WTOR
           HARDLOOP     DS   0H
                        TM   RESBECB,X'40'
                        BNO  HARDLOOP

The TM can be done in a processing loop with the BNO being replaced with a BO to the routine to be run when the Reply is made. If not posted yet, you go on and do other work. I think the EVENTS Macro can also be used to create request to go to that routine when the reply is made (it schedules an exit to be fired off when the ECB is POSTed).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to