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

Sub-program to access VSAM files from CICS and batch


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Elaine Pinnington

New User


Joined: 07 Dec 2007
Posts: 6
Location: France

PostPosted: Tue Feb 21, 2012 8:30 pm
Reply with quote

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!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 21, 2012 8:45 pm
Reply with quote

desolé, pas possible icon_wink.gif

the statements used for <file> handling/mangling are pretty different for the two environments

You will have to resort writing two modules,
Back to top
View user's profile Send private message
Elaine Pinnington

New User


Joined: 07 Dec 2007
Posts: 6
Location: France

PostPosted: Tue Feb 21, 2012 9:10 pm
Reply with quote

That's what I thought but it's been a long time since I've worked in this environment ....

Thanks for the reply
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 121
Location: Puerto Rico

PostPosted: Wed Feb 22, 2012 12:27 am
Reply with quote

Good day to all!

Access the below link, this article is based on LE routines for the z/VSE system but I think that you might have the same routines for MVS.

www.mainframezone.com/it-management/common-cobol-vse-applications-for-use-in-cics-and-batch-environments/P1
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 Feb 22, 2012 12:56 am
Reply with quote

Jose,

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.

HTH....

Mr. Bill
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Using API Gateway from CICS program CICS 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top