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
 

 

Batch EXCI program which calls a online program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Indrajit_57
Warnings : 1

New User


Joined: 27 Jun 2006
Posts: 60

PostPosted: Wed Jun 06, 2012 2:34 pm    Post subject: Batch EXCI program which calls a online program
Reply with quote

Hi,

I have a batch EXCI program which calls a online program to update a VSAM file (basically it adds a new record in the file). Once the updation are done the control come backs to the Batch EXCI. Then I try to read the same file (which was updated online) in batch for the new record that was added. The program abends with record not found; however the record is present in the file.

My question is that whenver the batch program starts does it takes an image of the file and it considers those set of records in the program. Any external updates that happens are not considered. If this is the case, what is the best way to handle this in the same batch EXCI program.

Thanks,
Indrajit
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 06, 2012 4:43 pm    Post subject:
Reply with quote

Quote:
My question is that whenver the batch program starts does it takes an image of the file and it considers those set of records in the program.
Absolutely not. What is happening to you is common -- when you do a WRITE in CICS, the data is not written to the file immediately. CICS will keep the data in the buffer until it needs the buffer for another record, or something forces CICS to write the buffer out (such as closing the file, for example).

The quickest -- and easiest -- solution for your problem is to close and reopen the file in CICS after the WRITE. Your site support group, however, may have an issue with this approach since it may take up system resources to perform the close / open. And, of course, the commands are System Programming commands and may not be available to your standard CICS compile procedure. Your best bet is to explain to your site support group what your application needs to do and get them to help with an appropriate approach.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm


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