Friday, December 23, 2011

CICS: How to purge a transaction in CICS

Let us say you are Xpediting a program in a CICS region and while in XPED you pressed PF12 key, but you are not getting any response from the region and you wanted to come out of the XPED session.  You can follow the below instructions to forcibly come out of the transaction by purging it.

Open another session to that CICS region. Assume that the transaction associated with your program is TX01. Now issue command “CEMT I TA TRAN(TX01)” in the blank in the new session. You will see a screen something like below.

  I TA TRA(TX01)                                                 
  STATUS:  RESULTS - OVERTYPE TO MODIFY                          
   Tas(0004889) Tra(TX01) Fac(BG9Z) Sus Ter Pri( 001 )           
      Sta(TO) Use(TXUXVXH ) Uow(C8DD6E4749B5A7AE) Hty(ZCIOWAIT)  

Now type “PU” as shown below to purge the task and press ENTER key

  I TA TRA(TX01)                                                  
  STATUS:  RESULTS - OVERTYPE TO MODIFY                            
   Tas(0004889) Tra(TX01) Fac(BG9Z) Sus Ter Pri( 001 ) PU         
      Sta(TO) Use(TXUXVXH ) Uow(C8DD6E4749B5A7AE) Hty(ZCIOWAIT)   

Wait for couple of seconds and press ENTER key again to see if the task is purged. If it is not purged, type “FO” as shown below to forcibly purge the transaction

  I TA TRA(TX01)                                                  
  STATUS:  RESULTS - OVERTYPE TO MODIFY                           
   Tas(0004889) Tra(TX01) Fac(BG9Z) Sus Ter Pri( 001 ) FO         
      Sta(TO) Use(TXUXVXH ) Uow(C8DD6E4749B5A7AE) Hty(ZCIOWAIT)   

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.