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
 

 

Sub-program to access VSAM files from CICS and batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Sub-program to access VSAM files from CICS and batch
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Tue Feb 21, 2012 8:45 pm    Post subject: Reply to: Sub-program to access VSAM files from CICS and bat
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    Post subject:
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: 110
Location: Puerto Rico

PostPosted: Wed Feb 22, 2012 12:27 am    Post subject:
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.

http://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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 22, 2012 12:56 am    Post subject: Reply to: Sub-program to access VSAM files from CICS and bat
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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