IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Catching VSAM records by CICS TS410


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Patrick Gantet

New User


Joined: 07 Apr 2010
Posts: 7
Location: Paris France

PostPosted: Wed Jun 02, 2010 5:13 pm
Reply with quote

icon_question.gif 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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Jun 02, 2010 6:25 pm
Reply with quote

Journaling?
Back to top
View user's profile Send private message
Patrick Gantet

New User


Joined: 07 Apr 2010
Posts: 7
Location: Paris France

PostPosted: Wed Jun 02, 2010 6:42 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 02, 2010 6:48 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Jun 02, 2010 6:49 pm
Reply with quote

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
View user's profile Send private message
Patrick Gantet

New User


Joined: 07 Apr 2010
Posts: 7
Location: Paris France

PostPosted: Wed Jun 02, 2010 8:32 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 02, 2010 8:33 pm
Reply with quote

Garry,

Good find. Besides the IBM doc, I found this -

ftp.software.ibm.com/software/systemz/telecon/jun10/June_10_Telecon_-_CICS_on_System_z_-_Turn_Insight_into_Action_with_CICS_Business_Events.pdf

Like yourself, I've yet to use the TS 4.1 Event Facility....

Bill
Back to top
View user's profile Send private message
Patrick Gantet

New User


Joined: 07 Apr 2010
Posts: 7
Location: Paris France

PostPosted: Fri Dec 10, 2010 12:33 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top