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
 

 

File sharing between CICS and batch Jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: File sharing between CICS and batch Jobs
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sat Jul 15, 2006 5:54 pm    Post subject:
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    Post subject: Re: File sharing between CICS and batch Jobs
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    Post subject: Re: File sharing between CICS and batch Jobs
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    Post subject:
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    Post subject: Hi
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    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 CICS to Webservices safexc CICS 1 Sun Jan 22, 2017 5:49 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm


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