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: 6966
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: 7935
Location: Bellevue, IA

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: 6966
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: 7935
Location: Bellevue, IA

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 CICS to Webservices safexc CICS 1 Sun Jan 22, 2017 5:49 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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