View previous topic :: View next topic
|
Author |
Message |
arunn
New User
Joined: 03 Sep 2010 Posts: 15 Location: Bengaluru
|
|
|
|
Hi,
I am trying to invoke a java web service from the mainframe environment via a batch process .
My requirement is to retrieve information from a java based web service from CICS-COBOL program and store it in a file. However it needs to go in as a batch process to make the whole process as automated as possible.
I looked around many places searching for options to be able to find a hint of how to go about doing it. But, could not find much useful results.
Any information about how to achieve this would be very helpful.
Thanks much. |
|
Back to top |
|
|
Prasun De
New User
Joined: 17 Jan 2008 Posts: 28 Location: Kolkata, INDIA
|
|
|
|
Our shop has this kind of system. Your java web service have to use the CICS gateway services to trigger one CICS transaction. The Java prograqm will actually pass the data in the DFHCOMMAREA of the transaction.
In mainframe you need to write the CICS-COBOL program to read the data from DFHCOMMAREA and write it to a VSAM file.
As per your requirement you need a batch process.
schedule a batch job to check the VSAM file in a regular interval and copy the records that are new in the file and have not been processed yet. You can do this by maintaining one separate file with the last processed record key.
If you get new records, then trigger your rest of the batch jobs. |
|
Back to top |
|
|
arunn
New User
Joined: 03 Sep 2010 Posts: 15 Location: Bengaluru
|
|
|
|
Thanks Prasun , this is something which i was looking for .... to be more precise,
Mainframe will call ----> Java webservices to get data.
it will store the xml data after parsing in a flat file to be updated later in a VSAM.
The bigger question is, since this is gong to be an online process of getting data from the web services, how do i trigger my CICS-COBOL program to get data via a batch process. I am not entirely sure how to have the CICS transaction triggered by a batch process. It definitely should be possible.
Just donno how???Will do some more digging into the gateway services to trigger one.
your post was helpful in clearing a few things.
Thanks. |
|
Back to top |
|
|
|