View previous topic :: View next topic
|
Author |
Message |
skkp2006
New User
Joined: 14 Jul 2006 Posts: 93 Location: Chennai,India
|
|
|
|
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 |
|
|
red_roses
New User
Joined: 31 Oct 2005 Posts: 27
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
bhardwajparitosh
New User
Joined: 30 Jul 2005 Posts: 4 Location: india
|
|
|
|
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. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
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 . |
|
Back to top |
|
|
mallikiran
New User
Joined: 07 Sep 2005 Posts: 49
|
|
|
|
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 |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
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 |
|
|
|