Question

  Asked: Feb 15 2008   4:27 PM GMT
  Asked by: Cdlegree


How do I pass data from CICS using MQ or SPOOLOPEN??


CICS, Mqseries, Spooling

I have a VSAM file that is currently defined to both CICS and a batch scheduling subsystem for update. CICS writes data to the VSAM file, and the batch scheduler subsystem, called CA7, reads and deletes the record from the VSAM file. This means that both subsystem can update the VSAM file and at times both sides try updating the VSAM file at the same time, which causes a 'deadly embrace.' The CICS region and the scheduler stop communicating and have to be cycled to break the 'embrace'.
Instead of writing the data to a VSAM file from CICS, I'd like to do one of two things:
(1). Pass the data to an MQ queue and tigger a batch job to read the data and update the VSAM file then invoke the scheduler.
(2). Or pass the data from CICS to a batch job that will update add the data to the VSAM file and then invoke the scheduler.

If anyone has a suggestion on the best way to pass data between CICS and a batch job please let me know. Any and all examples would be greatly appreciated.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


Start this Answer and Earn your Knowledge Points!

By clicking "Create Answer", you can write the answer to this question that can be improved upon by your peers using the Answer Wiki.

Browse more Questions and Answers on DataCenter, AS/400 and Microsoft Windows.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register