IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Details of the TCLASS in CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sibi Yohannan

New User


Joined: 15 Apr 2009
Posts: 47
Location: Bangalore

PostPosted: Thu Jul 02, 2009 7:16 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jul 02, 2009 8:19 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 02, 2009 9:18 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jul 02, 2009 9:54 pm
Reply with quote

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
View user's profile Send private message
sibi Yohannan

New User


Joined: 15 Apr 2009
Posts: 47
Location: Bangalore

PostPosted: Fri Jul 03, 2009 9:50 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 03, 2009 5:02 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Jul 04, 2009 6:12 am
Reply with quote

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. . . icon_sad.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top