I have been asked to write a module that will accept a reference number, interrogate one of four VSAM files and return the details of the transaction(so no updates).
The requirement is to able to call this module from the online system and from batch (or write two modules). It is a really long time time since I've worked with CICS and VSAM so I'm not sure if it is possible to do this from one program and none here seems to know either!!!
Joined: 14 Jan 2008 Posts: 2504 Location: Atlanta, Georgia, USA
The problem is that Batch File I-O must use Open, Read and Close Macros, which expand into SVC's and should never be used in CICS.
I was thinking perhaps if the target CICS region were still up and the File I-O activity was low, a Batch EXCI or ECI program could be written, along with a CICS Server program, which could Read the four different files passed by the EXCI/ECI caller, using CICS File API's (No File Open or Close are required). But if the activity were fairly busy, then neither of these would not be a favorable interface.
With that, a product named SYSB II would be an alternate for busy activity. It's sold by H&W Computer Systems (http://www.hwcs.com), of Boise, Idaho.
At one time CA marketed a competitive product named ShareOption5, but it was plagued with problems and I'm not sure whether they've been worked out.
As far as programmatically determining the run-environment, the CICS Macro DFHAFCD in both VSE and MVS environments has worked successfully for quite some time and continues to do so.