No SELECT per se, but python does have an "asyncio" module that I believe accomplishes that task. Haven't had occasion to use it myself so far, but I know it exists.
Peter -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin Sent: Tuesday, May 16, 2023 2:54 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: VBS file read in windows - end of record issue On Tue, 16 May 2023 11:26:06 -0700, Michael Stein wrote: > >read can be supplied with an operand saying the maximum amount to >read: read(4) to read 4 bytes. It might read less either because > So: "read_data = f.read( ntohs( SDW ) - 4 )" >it reached the end of the input file or because the input is >"interactive" (console? network?) and it just doesn't have any more >right now. > I suppose there's some distinction between EAGAIN and EOF. In REXX I have successfully (not necessarily usefully) switched dynamically between blocking and non blocking and handled EAGAIN. I don't know that REXX has SYSCALL SELECT. Does Python? -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN