Automatic disconnect of IMS session

Document ID : KB000124408
Last Modified Date : 11/01/2019
Show Technical Document Details
When a user logs on from SOLVE:Access to an IMS it may happen that the user is asked if he want to reconnect his old session. This should not be possible but automatically denied without users interference.
Any automated processing can be done in a SOLVE:Access script.

1. When the IMS logon is performed the Script does not stop after providing Userid and Password. It checks if IMS sends a screen asking the user for reconnect. If this screen appears, the Script denies this without the users intervention. Then the script ends and the user can start its work with IMS. 

2. When the user ends his session, the Script is also called. Using variable &MAISMODE it can be determined if the script is called at session start (&MAISMODE=START), session end (&MAISMODE=END) or Session Skip from another session (&MAISMODE=SKIP). This allows to end the IMS session in the END-Subroutine of the Script.
Additional Information:
More on coding a Script NCL can be found in Knowledge Document KB000110907 (