View previous topic :: View next topic
|
Author |
Message |
sibi Yohannan
New User
Joined: 15 Apr 2009 Posts: 47 Location: Bangalore
|
|
|
|
Hi,
Someone please explain me the details of the TCLASS in cics
We have a requirement to eliminate all the Transactions which is runinng for a quite long time (may be in a loop) or consuming more CPU time. The target is to reduce the load on the CPU and there by free the CPU if any transactions are running in loop.
Please advice |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Here is SET TCLASS and this is INQUIRE TCLASS
Included are explanations of TCLASS .
and don't bother to ask, it was easy in GOOGLE to find. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
The target is to reduce the load on the CPU and there by free the CPU if any transactions are running in loop. |
My brain hurts now.
Depending upon the number of engines on the box, and whether the loop is a hard loop or not (i.e., if there are no CICS calls in the loop), you may or may not be able to do this. If the loop does not involve CICS calls, you may have to force cancel the region to get it stopped. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
remember to set the max tasks for the class to 0, before killing any running tasks.
long running tasks may not be looping, just poorly written.
sounds as if you are a cics sysprgmer having to deal with a sloppy development group.
instead of TCLASS and holding down the number of tasks,
find the time parm and set it lower for specific transactions,
Otherwise you will be playing fireman with a squirtgun.
make the transaction time out
and the development group will have to make the transaction more efficient. |
|
Back to top |
|
|
sibi Yohannan
New User
Joined: 15 Apr 2009 Posts: 47 Location: Bangalore
|
|
|
|
As an example we have TIME Parameter in JCLs. The job will be automatically brought down if it exceeds the mentioned TIME Limit.
How can we achieve the same in an Online transaction, is there a way to specify the maximum run time of a CICS program, so that we can make sure that even though the transaction is running for a long time, once the time limit reaches it will be killed. That will save the further CPU time, there are cases where the long running transactions braught down the entire CICS region. We need to avoid any such type of incidents, thats the ultimate aim.
Please advice |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
As far as I know, the only way is ICVR in the SIT or RUNAWAY on the transaction. They depend upon the transaction allowing CICS to process actions, so as I said before if the transaction is in a loop with no CICS calls, neither method will work.
Be aware that with CICS there are circumstances in which you must bring down the entire region to resolve an issue. Period. If you cannot live with this, then do not use CICS -- that's your only choice. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you implement a better testing methodology. . .
If i understand what you are trying to deal with, the effort is a complete waste (imho).
The programs should not be promoted until they are ready - not just because someone says they "have to go live by mm/gg/yy" or because there are incompetent or lazy developers. . . . Also, fwiw, the programmer should not be the only one to test the program before promotion.
I guess far too many have come to accept the Windows "oh well, time to reboot" methodology, so now it gains ground in this environment too. . . |
|
Back to top |
|
|
|