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

Automate Purging of online Exped Session


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

New User


Joined: 04 Mar 2013
Posts: 16
Location: India

PostPosted: Thu Aug 22, 2013 10:14 am
Reply with quote

We are facing problem of hanging online Xped sessions because of programmers forgetting to release modules or exiting online exped. Testers are not able to start testing early in morning.

Is there a way to automate purging such hanging XPED sessions ?
Back to top
View user's profile Send private message
colin777

New User


Joined: 06 Jun 2013
Posts: 19
Location: Singapore

PostPosted: Thu Aug 22, 2013 12:20 pm
Reply with quote

Hi,

I'm not making any assumptions from your CICS question, because you dont explain, whether these XPED transactions are still there during Shutdown of CICS or that they are there and holding some other process.

So if it is the Shutdown, then investigate the SDTRAN option in the SIT. This allows you take control during the shutdown of CICS and perform your own processing, such as terminating tasks. The default Transaction is CESD. This is referred to as the Shutdown Assist transaction.

The CEKL transaction can also help in this situation. It can only be used from the Master Console, in situations where you cannot use CEMT. Using the Master Console in CICS uses the CQ TCB, so is not subject to normal CICS processing or Hang on the QR TCB.

HTH

Colin777
Back to top
View user's profile Send private message
yogesh suryawanshi

New User


Joined: 04 Mar 2013
Posts: 16
Location: India

PostPosted: Thu Aug 22, 2013 12:33 pm
Reply with quote

Hi Collin..

Programmers usually expediate modules and they are fogetting to closed XPED sessions. We are working in offshore hours (India) , so when Business UAT testers come at work during USA morning shift hours they can not perform testing because of such hanging XPED session.

We have communicated programmers and asking them to close XPED sessions. But sometimes programmers are forgetting to do it.

So I want to create macro or something which will run automatically during end of offshore shift and will close any XPED sessions which are hanging. This way Business UAT testers will be able to start their work on time wothout any delays.

So I wanted to know if anybody has done such thing already.
Back to top
View user's profile Send private message
colin777

New User


Joined: 06 Jun 2013
Posts: 19
Location: Singapore

PostPosted: Thu Aug 22, 2013 1:01 pm
Reply with quote

HI,

Ok, so look at EXEC CICS INQUIRE TASK and EXEC CICS SET TASK. The first command will return all the current tasks in the System and the second will give you the option of purging those tasks that meet some criteria. If you place these commands into a Program, and define a Transaction (let's call it transaction A) for that program, then you can have another transaction that simply issues an EXEC CICS START TRANS(A) AT(hhmmss).

If CICS comes down, this process can be added to the PLTPI so that it's always available when CICS comes up.

For the program that issues the EXEC CICS SET TASK PURGE, you might want to write a record of each task purged to Transient Data destination CSML. This way you will have a record of which transactions were purged.

This will make for a good Audit/review later. You will have to notify that your transaction contains SP commands. This may need CMDSEC in the transaction definition to be specified, especially for security purposes. Do make sure that all transactions involved in this have the appropriate security specified.
Back to top
View user's profile Send private message
yogesh suryawanshi

New User


Joined: 04 Mar 2013
Posts: 16
Location: India

PostPosted: Thu Aug 22, 2013 2:17 pm
Reply with quote

Thank you
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Aug 22, 2013 6:42 pm
Reply with quote

I would add a step to either disable the user that leaves it hanging, or create a report of same.

A little shame can go a long way!

We used to make the programmer that locked up the region buy donuts the next day. When the screen would lock up, people would start saying "I smell donuts!" After I did that once, I checked my code a LOT closer before running it.
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 Underscore was not populated to onlin... CICS 1
No new posts Trying to change copybook in online c... CICS 4
No new posts Batch call online program, EXCI task ... CICS 3
No new posts Error while trying to access Online I... CA Products 2
No new posts IBM Personal Communications session i... All Other Mainframe Topics 4
Search our Forums:

Back to Top