Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Catching VSAM records by CICS TS410

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Catching VSAM records by CICS TS410
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: 2150
Location: At my coffee table

PostPosted: Wed Jun 02, 2010 6:25 pm    Post subject:
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 02, 2010 6:48 pm    Post subject: Reply to: Catching VSAM records by CICS TS410
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Jun 02, 2010 6:49 pm    Post subject:
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    Post subject: CICS Event Processing
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 02, 2010 8:33 pm    Post subject: Reply to: Catching VSAM records by CICS TS410
Reply with quote

Garry,

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

ftp://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    Post subject: VSAM Write interception using Event Processing
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us