View previous topic :: View next topic
|
Author |
Message |
Patrick Gantet
New User
Joined: 07 Apr 2010 Posts: 7 Location: Paris France
|
|
|
|
Instead of using a VSAM exit like XFCREQ to catch the write order.
Is there a functionality in TS4.10 to automatically catch the records and send it in a queue?
Thanks for your help |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Journaling? |
|
Back to top |
|
|
Patrick Gantet
New User
Joined: 07 Apr 2010 Posts: 7 Location: Paris France
|
|
|
|
Yes, but I need to send the vsam records to a unix machine in a queue which will be treated by a java program.
My first idea was to code a vsam exit to send the record. But an system engineer indicates me that in ts41 it exists an new functionality to avoid the coding! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
GLUE "XFCREQ" is invoked before a FILE API is issued and is complete. With that, do you want to bypass the FILE WRITE and instead, issue a TDQ WRITE?
Instead, why not issue the FILE WRITE and invoke GLUE "XFCREQC" and test for a successful WRITE? If this is true, then issue the TDQ WRITE.
You're fortunate that both of these GLUE's allow XPI as well as API commands, so the WRITEQ TD API can be issued. There isn't any WRITEQ TD XPI.
Please consult the Customization Guide for additional usage and examples.
You'll have to write a program associated with the given GLUE of your choice and ENABLE it at startup so it will be invoked automatically when the given API is issued from an application program.
Review your SDFHSAMP library for example member DFH$XTSE and check whether this exit program can be written in other than Assembler.
Bill |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
This sounds like CICS Event processing. The CICSTS V4.1 InfoCentre has
Quote: |
A CICS application can capture and emit business events with no change to the application itself, using noninvasive capture points, before and after selected EXEC CICS API calls, and at program start.
|
I haven't got to using it yet, though.
Garry. |
|
Back to top |
|
|
Patrick Gantet
New User
Joined: 07 Apr 2010 Posts: 7 Location: Paris France
|
|
|
|
Thanks,
Reading the documentation, it seems that :
I can define an Event for a vsam write command filtered on my vsam file
Then I have the possibility to consume it:
- by a transaction
- by a specific EP adapter
What remains not clear is what parameters I reveive (record, legnth) |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
Patrick Gantet
New User
Joined: 07 Apr 2010 Posts: 7 Location: Paris France
|
|
|
|
I've written an Custom EPAdapter; then define the Event Binding using the EP Explorer. ..
When I export the bundle via EP Explorer, I've an no error;
But when I test the write VSAM my EP Adapter is not activate!
Did you had a similar problem, or can give me some ideas!
thanks |
|
Back to top |
|
|
|