3270 Function keys are special keys that would reside on a 3270 keyboard to do things like CLEAR the console screen, erase (ERASE EOF) to the end of the line, or TAB to a specific field on the 3270 terminal. In the BMC MainView Console Automation for zEnterprise RDL2 language, there is a way to send 3270 function keys to the console, but this process was not properly documented. |
To send 3270 function keys in the BMC MainView Console Automation for zEnterprise RDL2 language, use the sendkeys function as you normally would send any text to the console or 3270 terminal, using the escape-character "@" before a letter representing the 3270 function. For example, to send a TAB function to a console window using the RDL2 sendkeys function, you would use the escape-character-sequence "@T". To send a BACKTAB function, you would use "@B" Here is an example of the code to send the BACKTAB and ERASE EOF 3270 functions to a console: function sendSomething(command) // make sure command input field is empty by doing a back tab and erase EOF first sendKeys("@B@F") sendCommand(command) return 0 Following is a list of all 3270 function keys that can be sent using sendkeys:
|