Page 1 of 1

Contenion Issues

PostPosted: Sat Jun 25, 2011 11:55 am
by Jerrin Jose Thomas
Hi,
We are trying to avoid Contenion Issues the Jobs has over the Control card. We had the following Fix to handle this in Rexx but later realised that this is not giving us the expected results.The fix was that we have a Sleeper Process in place so that the whenever the first DISKW to Write the contents from one control card to the another fails the process goes into a sleep mode for 12 seconds and later do a Write if successful. The sleep process is set for 5 intervals of time from the first unsuccessful Write.If the contention still persists even after 60 seconds we throw an error.

When the Job ran last time there was a contention issue over the control card and the Job went to a sleep mode for 24 seconds and later altered the control card
(As per the SYSOUT ). But we later actually realised that contents were not actually written .

Can someone please suggest some possible reasons for this

Re: Contenion Issues

PostPosted: Sat Jun 25, 2011 3:11 pm
by BillyBoyo
Why is this in the Cobol forum?

We'd need a lot more information, like what "Contenion" is, how the problem is arising etc. What Jobs? What Control card.

If more than one program can have the control card, it would look like the other program did an update with the old data, probably over-writing what your program had done. You'd maybe need to work out some sort of "locking" for the Control card.

Re: Contenion Issues

PostPosted: Sat Jun 25, 2011 8:25 pm
by enrico-sorichetti
and how would be the issue COBOL related ?

wrong forum
site jargon ... Control card ...
whatever the issue the description is clear as mud
everything is sloppy

since
we reply on our own time
free of charge
we share our experiences with You

You should have at least the good manners to post properly
we spend time helping You solve Your issue
it is unpolite to expect us to waste time deciphering Your poor description of things

to make the most out of the questions You ask
it would be wise to read and meditate on
How To Ask Questions The Smart Way here
http://catb.org/~esr/faqs/smart-questions.html

Re: Contenion Issues

PostPosted: Sat Jun 25, 2011 10:38 pm
by dick scherrer
Hello,

There is no good part of the forum to talk about a sure way to harm your environment.

If you are willing to put in enough effort to completely explain what you were trying to accoplish (this may take a couple of paragraphs as well as some example(s) someone may have a suggestion. I suspect that quite a few of us have done something like you want and did not even consider this approach.

In general it is wrong to implement code that will "retry until successful".

Once you have provided enough information for someone to understand your situation, we can talk about where this might be best relocated.

Make sure you clearly explain the working of this "Control Card".

Re: Contenion Issues

PostPosted: Tue Jun 28, 2011 9:25 pm
by Ed Goodman
To actually answer your question... is it possible the OTHER job updated the control card after the first job finished? That way, you would see the other results instead of the "expected" results. We had that happen with a sequential file, and we thought all kinds of things were wrong until we looked at the other jobs in the logs.

How many lines are in the control card? I'm guessing it's a member of a PDS? Is there any other contention control on the jobs read/wring this member(file)? As in, do the jobs wait on each other through a scheduler?

Re: Contenion Issues

PostPosted: Fri Jul 08, 2011 1:46 am
by Pedro
whenever the first DISKW to Write the contents from one control card to the another fails the process


I think contention detection should occur prior to using the write. I think you should allocate with DISP=OLD to lock out others. Perhaps even DISP=(OLD,PASS).