Page 1 of 1

Need jcl which will purge the task running in CICS region.

PostPosted: Mon Jul 21, 2008 12:29 pm
by progressabhi1
Hi

Can any one guide me regarding writing of jcl which will force purge the job running for some transaction in the CICS region.
Below,I'm mentionnig the details.

1.As we know for every running transaction;we see several tasks running in CICS region.
2.Suppose if you want to purge those tasks, you need to write 'F' in front of the task to purge it.
3. The 2nd step what I mentioned above ; I want to do it through some job.


Regards
Abhishek Kr

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Mon Jul 21, 2008 10:10 pm
by dick scherrer
Hello,

You need to talk with your CICS Systerm Programmer and ask what might be available on your system to do this.

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Wed Jul 23, 2008 7:26 pm
by progressabhi1
Hi

Thanks Dick for your response.
I will try this from my side.
But,the help I needed is ; if is it possible to write some jcl to do the mentioned task
can anyone send me the template or any link to get an idea to compose the same.

Regards
Abhishek Kr

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Thu Jul 24, 2008 2:11 am
by Bill Dennis
Where do you normally "see" the tasks so that you might type an F in front of it? On a monitor such as OmegaMon?

Or do you issue a line command at a system console?

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Thu Jul 24, 2008 11:59 am
by progressabhi1
Hi Bill

Thanks for your reply.
This time I'm not able to send you the screenshot as attachement(may be it is not enabled for me).
But,I'll tell you know so that you can see my query.
Below is the steps you need to take to understand my query :

1.Logon in CICS region.
2 On the panel you type
CEMT I TA TRAN(*)
Note:- Instead of '*' you can give any transaction name which if; by mistake you purge also
it don't harm the system(later on you can start this,just for sake i said).
3. You will be seeing many tasks running LIKE
******************************************************************************************************************************
I TA TRAN(DM*)
STATUS: RESULTS - OVERTYPE TO MODIFY
Tas(0022384) Tra(DM01) Sus Tas Pri( 001 )
Sta(S ) Use(D19302 ) Uow(C2BBB82EB30B5084) Hty(MQSeries)
*******************************************************************************************************************************
4.Now,In order to stop this Online tasks you need to purge it.As for eg. mentioned below:
==========================================================================================
I TA TRAN(DM*)
STATUS: RESULTS - OVERTYPE TO MODIFY
Tas(0022384) Tra(DM01) Sus Tas Pri( 001 ) F
Sta(S ) Use(D19302 ) Uow(C2BBB82EB30B5084) Hty(MQSeries)
==========================================================================================
5.This will stop the particular instance of transaction running.

This work I need to do through JCL so that if around 100 - 1000 transactions if;running i will be able to purge it
in one go.

I think above description will help you to understand my query.

Regards
Abhishek Kr

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Thu Jul 24, 2008 12:36 pm
by dick scherrer
Hello,

Please look at the reply to your other topic about how to send screenshots. Bacically, that reply requests you to not use screenshots. COPY/paste and the "Code" tag do a much better job than a screenshot.

What situation makes it proper to purge 100 or 1000 CICS transactions? I'd suggest you get permission (preferable in writing) to implement some kind of wholesale purge. Some of the organizations i have supported feel so strongly that they have terminated people for wholesale purging of jobs in JES, transactions in CICS, and database transactions.

Re: Need jcl which will purge the task running in CICS region.

PostPosted: Thu Jul 24, 2008 12:53 pm
by progressabhi1
Hi Dick

You are very correct in your view.
But,In the environment where I'm working is completely testing environment.Here,I can do R&D also.
Also,I want to purge tasks which will be defined by us.
Like what i mentioned in my previous example i.e.
transaction name like "DM*" . So,it will wont be any system transaction.
I want that the jcl should identify the transaction's initial like "DM*" or "RB*" or "IF*" etc. and proceed further in
purging the tasks.

Regards
Abhishek Kr