Terminating the application


VTAM applications have a variety of methods by which you can request termination.

For example, one application may terminate a session when logoff is received and another application may terminate a session when PF key 2 is received.

Because the data required to request session termination varies by application, OSPI does not know when such a request has been sent.

Each time the Scripting application sends data to a VTAM application, it also attempts to receive data. This read attempt usually fails after a request to terminate is sent. This failure causes OSPI to display an error panel. An example of this error panel is shown in the following figure.

BMC Software ----------------- OSPI Session Termination -------- BMC AMI OpsA
COMMAND ===>

    The OSPI session has terminated.

    Outstanding function was: RECEIVE DATA

    VTAM ACB error flag: 00

    Diagnostic information:

           RPL RTN/FDBK=0C0B, SENSE=00000000
           REQ CANCELLED DUE TO SESSION
           THE SESSION HAS BEEN TERMINATED

 Note: The above information may indicate that the session was terminated
       normally or abnormally.

 Press ENTER to display last buffer image, PF3  to save script and return.
 Enter CANCEL to skip script saving.

The unsuccessful read looks like a true error to OSPI because it does not know that the last data sent requested application termination. If you receive this panel after you requested application termination, no true error occurred and you can ignore the error panel.

You can also terminate a session by using option 30, Cancel session, from the hot key pad. However, this option is not recommended because the appropriate application cleanup may not be performed.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*