TELNET : Isn’t it possible to end TELNET automaticaly

470 pts.
Tags:
AS/400
Exit programs
i5
Telnet
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TSCHMITZ
    Thanks Martin, it works perfectly, of course. Have a nice day. Thierry.
    470 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following