Article View: comp.lang.asm370
Article #1042Re: WAIT FOR AN ECB POST IN C PROGRAM (IBM C/C++)
From: Thomas David Rivers
Date: Fri, 06 Dec 2002 19:02
Date: Fri, 06 Dec 2002 19:02
37 lines
2126 bytes
2126 bytes
Peter Wansch wrote: > > Hi, > > I am writing a C program that issues IFI READA calls > and want to pass an ECB to it (that I have defined as > int in my C program), that gets posted by DB2 when the buffer > gets filled. > > Is there a simple way to wait for an ECB to get posted in > a C program? I use IBM C/C++ (we do not have SAS/C installed). > I think they have a WAIT1(&ecb) in ostask.h. I want to accomplish > something similar, or is my only chance to write an external > assembler program that calls wait? > > What would my signal/interrupt situation then be in case my C > program receives a signal? > > I appreciate any help or pointers, > Peter Peter - selectex() might be something to look it. It's available in the IBM C and Dignus C runtime libraries. selectex() lets you wait on an ECB (or a time-out, or a socket.) I believe SAS has something similar called select_ecb(). - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com
Technical Details
Message-ID:
<3DF0F44A.9E5107F9@dignus.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<50855413.0212051455.47b17483@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd4af,a5fac976a692a520 X-Google-Attributes: gidfd4af,public X-Google-Thread: 10da59,a5fac976a692a520 X-Google-Attributes: gid10da59,public X-Google-Thread: f8131,a5fac976a692a520 X-Google-Attributes: gidf8131,public X-Google-ArrivalTime: 2002-12-06 11:02:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Thomas David Rivers <rivers@dignus.com> Newsgroups: comp.lang.asm370,bit.listserv.ibm-main,bit.listserv.db2-l Subject: Re: WAIT FOR AN ECB POST IN C PROGRAM (IBM C/C++) Date: Fri, 06 Dec 2002 14:02:34 -0500 Organization: Dignus, LLC Message-ID: <3DF0F44A.9E5107F9@dignus.com> X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 References: <50855413.0212051455.47b17483@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Lines: 37