• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 812
  • Last Modified:

send F12 to a TELNET 5250 session?

Hi,
In C# (or vb.net), with socket, I established a telnet session with a 5250 terminal (as400)
What message have I to send to it in order to send the F12 command?
I tried with hex(134) but is not the corret one.

thanks
0
bobdylan75
Asked:
bobdylan75
  • 3
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
can u post some code just to get an idea?
0
 
Meir RivkinFull stack Software EngineerCommented:
0
 
bobdylan75Author Commented:
th answer is:
ESC + '=' or CHR(27) +"="
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
tliottaCommented:
Be aware that the proposed solution might or might not work at any given time in the future. A "telnet" connection might result in a variety of screens that must be navigated before any programmed interaction can begin. Or a different device type might be assigned that has a different requirement for "F12" (e.g., a VT100 or 3270 device). Or other complications might arise.

Seriously, communication through one of the servers that are provided for interaction with other platforms will be much more reliable for the long term.

Tom
0
 
bobdylan75Author Commented:
Not for my project, thanks. Seriously. Thanks a lot.
0
 
bobdylan75Author Commented:
Sorry I try the solution by myself
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now