Yes there is .....
Its waiting for a read However I gave a did a GiveSocket and the Subtask did a TakeSocket caused which caused an exception... Then I closed the Orignal Socket used for the Select Service That should Finish off processing in the Main program I tested this out under TSO TEST got return code 0 from the CLOSE service.... -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Rob Scott Sent: Sunday, October 25, 2009 7:54 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Return Code from EZASMI macro Select Service If SELECT is giving you a positive return code then there is some sort of pending action required on the socket. Have you determined what sort of action it is ? (READ, WRITE or EXCEPTION) ? Rob Scott Developer Rocket Software 275 Grove Street * Newton, MA 02466-2272 * USA Tel: +1.617.614.2305 Email: rsc...@rs.com Web: www.rocketsoftware.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Joe Reichman Sent: 25 October 2009 05:57 To: IBM-MAIN@bama.ua.edu Subject: Return Code from EZASMI macro Select Service Hi, The way I read the EZASMI Select Service macro description in the communication server guide and reference if the return code is > 0 then there are active connections If I receive a connection post a subtask issue GIVESOCKET and have been notified by the Subtask that it has has done a Takesocket I can now close this new socket (returned to me by the accept macro) and when I issue my select again the return code should be 0 Even though the socket is active for the subtask I seem to be always getting a return of 1 After the first connection... Thankx ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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