Question

  Asked: Feb 18 2008   8:07 AM GMT
  Asked by: TSCHMITZ


TELNET : Isn't it possible to end TELNET automaticaly


TELNET, Exit programs, i5, AS/400

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.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Networking and AS/400.

Looking for relevant Networking Whitepapers? Visit the SearchNetworking.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

TSCHMITZ  |   Feb 19 2008  2:38PM GMT

Thanks Martin,
it works perfectly, of course.

Have a nice day.

Thierry.