Thread View: comp.lang.asm370
3 messages
3 total messages
Started by Peter Wansch
Thu, 05 Dec 2002 22:55
WAIT FOR AN ECB POST IN C PROGRAM (IBM C/C++)
Author: Peter Wansch
Date: Thu, 05 Dec 2002 22:55
Date: Thu, 05 Dec 2002 22:55
18 lines
1627 bytes
1627 bytes
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
Re: WAIT FOR AN ECB POST IN C PROGRAM (IBM C/C++)
Author: Dan Espen
Date: Fri, 06 Dec 2002 02:07
Date: Fri, 06 Dec 2002 02:07
23 lines
2325 bytes
2325 bytes
pwansch@ca.ibm.com (Peter Wansch) writes: > 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, Sure is: selectex()
Re: WAIT FOR AN ECB POST IN C PROGRAM (IBM C/C++)
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads