Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Job contention with CICS issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
valadezm

New User


Joined: 05 May 2006
Posts: 7

PostPosted: Fri Jul 18, 2008 10:02 pm    Post subject: Job contention with CICS issue
Reply with quote

I have a situation which I hope some of you have encountered and have resolved.

We run a batch job around noon, the steps in this job, deallocate the vsam files via DADS in CICS in order to process. However, on multiple occasions the job was abending with file contention on the files we had previously deallocated.

After some research we found out that certain transactions were being executed in cics by the clients that would open the files in question causing the job to abend.

We came up with a temp solution. I added a step to the batch job that would

1. deallocate the files
2. disable the transactions (2 of them) that were causing the file open.
3. allocate and enable the transactions at the end of the job after program execution.

This has been working great so far until today, where when the batch job issued the disable command for the transaction, the transaction was actually executing in cics at the time of the disable command and it stopped updating causing some issues for the client.

Does anyone have any other ideas on how to handle this type of situation?

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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jul 18, 2008 10:14 pm    Post subject:
Reply with quote

Hello,

Is there a true business reason this batch job must be run in the middle of the day? What would be the cost to the organization if this did not run until after the online quiesced? Could the process run 2 tmes - once before the online and once after the online?

Several of my clients tried to do this in the past and all were unsatisfied because of the logistics. Most also discovered that the mid-day run was only a "want" rather than a "need".

These days, multi-user databases allow the concurrent execution of the batch jobs and the online in most situations.
Back to top
View user's profile Send private message
valadezm

New User


Joined: 05 May 2006
Posts: 7

PostPosted: Fri Jul 18, 2008 10:20 pm    Post subject: Reply to: Job contention with CICS issue
Reply with quote

Unfortunately there is business requirement as we need to meet a DTC (depository trust) requirement, so it does need to process at that time.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Sat Jul 19, 2008 4:27 am    Post subject:
Reply with quote

the design is incorrect. you should be generating some kind of esds log, timestamped - does not have to be a db2 timestamp, just a good down to millisecs timestamp. This will be used to provide a start and end point for your daily strip.

any decent online system that posts financial transactions to 'accounts/customers - whatever' normally has a simultaneous GL (general ledger) report (log file) generated. Then the esds is stripped by whatever application filter job to obtain the necessary data concerning events during a period. This esds file would never have contention - normally the report/log entries would be sent via TDQ (TDQ'S allow for recovery incase cics comes down) to start a task to format and actually do the esds write. Sometimes MQS queues (depends on whether the customer can afford to use something other than darkages technology), which trigger batch processes.

yeah, sounds like this idea would be a lot of work to an existing system. But over the years, I have learned to stay away from vsam (or db2) masterfiles during the online sessions. and the easiest way to do it is generate a 'report' item and send it someplace that everybody can access.

it's late, sorta long winded.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Jul 19, 2008 9:49 am    Post subject:
Reply with quote

I contracted at a shop once that would run a batch update program against a file that was open to CICS. The batch job would generate a CICS transaction with the required parameters to accomplish the update. It's an expensive way to go but it is an option. Sorry, I don't recall the name of the software that allows this to take place. Maybe Google could help?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SIGNAL ON HALT issue packerm CLIST & REXX 0 Fri Oct 20, 2017 6:56 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us