TPX Virtual terminal (ACB) connection problem with applications. (SENSE CODE=0805000B)
search cancel

TPX Virtual terminal (ACB) connection problem with applications. (SENSE CODE=0805000B)

book

Article ID: 53140

calendar_today

Updated On:

Products

TPX - Session Management

Issue/Introduction

Occasionally, user may have difficulty in starting a VTAM application session from the TPX Menu selection.
The response received would display the following error in the TPX LOG. 

Error message:
                        TPXL0085 - with a VTAM SENSE CODE=0805000B.

The Log will show details that may look something like:

TPXL0085 11/25/08.330 12:06:47.59 RPL ERROR MANAGEMENT ROUTINE ENTERED 
   PLU=GHDB1269  SLU=GR2GR005  USER=ITJL     REQ=29 00001024 0080 
   TERMSB=1B31AC98 APPLSB=1B2ED968 EB=18B32380 RPL=18B39C88 
   RTNCD=10 FDBK2=12 MEANING=MACRO FAILURE, SENSE INCLUDED 
   SENSE CODE=0805000B MEANING=SESSION LIMIT EXCEEDED 
   ACTIONS TO BE TAKEN: 
                 CLEANUP 
                 EVENT STORAGE PURGED

Environment

Release: 5.4
Component: TPX

Resolution

Receiving a Sense code 0805xxxx after TPX selects an ACB and requests a session with an application is almost always a result of
the 'application' not cleaning up completely after a TERMSESS OPTCD=UNCOND (Unconditional).

This is the type of TERMSESS that TPX issues when TPX initiates a normal termination of the session (example; when a user issues a /I against a session).
When this is initiated, VTAM will drive the applications losterm exit for the session, if there is one set up, and will send TPX an unbind at the same time to
trigger TPX to clean up its half of the session.

Some 'applications' do not handle the unconditional TERMSESS very well and may not completely clean up its half session (Control blocks or flags were not reset),
although the application must be able to handle every type of TERMSESS trigger.
At this point VTAM and TPX have correctly cleaned up all of their respective areas concerning the session.

When a subsequent session request is sent to the same 'application', using the 'same' ACB,
the application incorrectly believes that there is already a session active on that ACB and returns a SENSE 0805xxxx error.
This will usually occur on one or a handful of ACB's.

There are various ways to correct this situation.

OPTION # 01
Using TPXOPER, mark the ACB(s) involved as unavailable.
This makes the ACB unavailable for selection by TPX for any new session requests for any application.
User currently using that ACB will not be effected.
TPX will select the next appropriate available ACB to establish the session.

OPTION # 02
This manual process can be automated using the supplied TPXUERR2 user exit (Sample is in TPX hilvl. CB0VSRC).
Customize this exit and assemble and rename it to TPXUERR1 before moving it to the TPX load library.

OPTION # 03
A termination ACL is another approach of avoiding this situation.
'Applications' usually do not have a problem with users logging off natively.
The termination ACL will be invoked whenever TPX senses a normal session termination /I processing and full control of terminating the session will be given to the ACL.
TPX will not send the TERMSESS - this means that the author of the ACL must ensure that the ACL will always terminate the session.

BEST SOLUTION
The best solution to this situation, however, is to take care of the actual problem.
Applications may or may not have various exits or utilities to handle similar error situations.
For instance, CICS has a node error program, which can be coded to force a cleanup of the session for which the sense 0805 was issued.

With an unconditional termination the applications only recourse is to issue a close DEST.
This does not have to be immediate, as sometimes it goes through a clean up for data integrity.
Close DEST should be issued following the clean up process.