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

File sharing between CICS and batch Jobs


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

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Fri Jul 14, 2006 5:29 pm
Reply with quote

I have an online file which is getting updated online say sequential file and this online transaction runs throughout the day. And now i need to make a backup copy of the file using Repro.Is it possible to share the the same file in a batch job and have a backup.Please advice.
Back to top
View user's profile Send private message
red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Fri Jul 14, 2006 8:40 pm
Reply with quote

First as far as i know you cannot use sequential files online.

Second if a file is open to the online region, one cannot use the same file at the same time in batch, atleast not for modification.

If i understand correctly, u want to empty the file n write the contents to a backup file. this cannot be done as long as the file is allocated to the online region.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sat Jul 15, 2006 5:54 pm
Reply with quote

red_roses is right. Sequential files can be used in CICS when you use them as TD queues. You probably want to backup a VSAM file.

We have a batch job that backup CICS VSAM files. The first step in that job is to deallocate the files in CICS. We do that using a vendor product, but there are other methods of doing it by yourself (for example, issue CEMT commands from batch, or run an EXCI program with SET FILE commands).

O.
Back to top
View user's profile Send private message
bhardwajparitosh

New User


Joined: 30 Jul 2005
Posts: 4
Location: india

PostPosted: Mon Jul 17, 2006 4:27 pm
Reply with quote

i am not very much sure about it but you can use SHAREOPTION(2,3) while defining your VSAM file the you can open it in batch as well as online. may be the parameters for shareoption is diffrent but i believe it will work. icon_redface.gif
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue Jul 25, 2006 8:46 pm
Reply with quote

There is a new product from HostBridge Technology that permits access to any cics resource from a user written Batch Cobol program. You can write your own code to logically execute/communicate with ANY cics application including CEMT . icon_idea.gif
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Tue Aug 01, 2006 7:19 pm
Reply with quote

Shareoptions 4,3 for the VSAM file will allow both your batch job and CICS to simultaneously update the file. But it is not advisable to use 4,3 as it can cause data integrity issues.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Aug 02, 2006 2:01 pm
Reply with quote

Skkp,
If your defining your file as VSAM with RLS option that would enable the VSAM copling facility.Wih Vsam copuling facility enabled multiple users can update the same VSAM file with out compromising data integrity..

-Han.
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 Finding and researching jobs All Other Mainframe Topics 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top