How to pass terminal session to work further

i am working on terminal that is IBM Pcom, i have used terminal session to connect with IBM Pcom.
i have picked up a text at a Field after that i need to make a decision on the basis of that Text (Send Key F12 on terminal). In terminal session i am getting that text but after that i have used if block and in that block decision is correct but i am facing issue in Send Key.

i know it is the problem of session so can anybody help how to transfer session to other blocks. Terminal_Properties

Please guide me how to work with these properties.