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
 

 

Details of the TCLASS in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Details of the TCLASS in CICS
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: 6968
Location: porcelain throne

PostPosted: Thu Jul 02, 2009 8:19 pm    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jul 02, 2009 9:18 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Jul 02, 2009 9:54 pm    Post subject:
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    Post subject: Details of the TCLASS in CICS
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 03, 2009 5:02 pm    Post subject:
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

Site Director


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

PostPosted: Sat Jul 04, 2009 6:12 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm


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