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
 

 

Accessing File both in batch and online.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Umeshrath

New User


Joined: 28 Feb 2006
Posts: 2
Location: Hyderabad

PostPosted: Mon Mar 27, 2006 10:56 am    Post subject: Accessing File both in batch and online.
Reply with quote

Hi all,

I have to access a file both in online and batch.

Online program will only update the file and the batch program will take the read the data from the file.

But its possible that before the batch job ends the online program can access the file.

Waiting for reply.

Regards,
Umesh
Back to top
View user's profile Send private message

unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Mon Mar 27, 2006 1:52 pm    Post subject: Re: Accessing File both in batch and online.
Reply with quote

hi,
its possible,bcz,mvs has an options like SHAREOPTIONS(Cross region,Crosssystem).And also,by pseudo conversation,if the system wants to wait,u can do the programming like that.
anyway,i am not sure in this and correct me if you got the correct method!
Back to top
View user's profile Send private message
gsnvsr

New User


Joined: 06 Jul 2005
Posts: 40

PostPosted: Mon Mar 27, 2006 7:31 pm    Post subject: Re: Accessing File both in batch and online.
Reply with quote

VSAM SHAREOPTS(2,3) should serve your need. However, for cross-region sharing, VSAM does not ensure Read Integrity.

I have not seen any shop that uses an online file in batch when CICS is UP. I hope you don't wish to do it in production!
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Mon Mar 27, 2006 8:59 pm    Post subject: Re: Accessing File both in batch and online.
Reply with quote

Hi gsnvsr,

My shop uses CICS-OPENED-FILES in batch jobs. and dozens of them. OF course they are used in read mode in batch jobs and update mode in CICS. and of course with VSAM SHAREOPTS(2,3).
Back to top
View user's profile Send private message
gsnvsr

New User


Joined: 06 Jul 2005
Posts: 40

PostPosted: Mon Mar 27, 2006 10:54 pm    Post subject: Re: Accessing File both in batch and online.
Reply with quote

It should then be okay for the business! I mentioned that I've not seen a shop doing it. Good that you alerted. Old mainframe is being used differently across different places. So, no wonder. Cheers
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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