470 pts.
 TELNET : Isn’t it possible to end TELNET automaticaly
I have a piece of code that use TELNET to switch to another session on the same box to run another inquiry application with a different hardcoded userid. The reason of that is to have this query application fully transparent to the user. My problem is that the users do not allways take care of the fact that they are in TELNET in instead of using <ATTN> <99> <enter> to come back to the original session they initiate a brand new session login on twice. In the past, we had two boxes and this function was run using STRPASTHR and terminated using ENDPASTHR, but now with TELNET, i do not find any exit command. Is there a better way to do that ? Thanks. Thierry.

Software/Hardware used:
ASKED: February 18, 2008  8:07 AM
UPDATED: February 19, 2008  2:38 PM

Answer Wiki:
Hi, You should be able to use SIGNOFF ENDCNN(*YES) Regards, Martin Gilbert. Martin is correct and to clear it up a bit there is a difference between a passthru and a telnet session and that is why you are seeing the issues.
Last Wiki Answer Submitted:  February 19, 2008  2:05 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks Martin,
it works perfectly, of course.

Have a nice day.

Thierry.

 470 pts.