Skip to main content

I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script

I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script

Hi ,

I think your command String is missing an ampersand sign:

EMSendKey "<Home>UDU "& i_SERVICE & "AS" & "<Enter>"

If not try to split the command string

EMSendKey "<Home>UDU "
EMSendKey  i_SERVICE
EMSendKey "AS"
EMSendKey "<Enter>"


I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script
Hi bsbal18, Hi Andre,

Apart from the missing & above, I have noticed issues with using EMSendKey, especially after sending control keys such are <Erase_EOL> or <Erase_Input> and following it with a second control key and string e.g. "<Home>ABC".

It can lead to Characters getting dropped in subsequent EMSendKey instructions.

e.g.
If I execute the following, invariably I get "AD:N<12 written at the <Home> position, it's not 100% of the time though.

Sub Main
i_SERVICE = "N<"
' EMSendKey "<Erase_Input>"
EMSendKey "<Erase_EOF>"
EMSendKey "<HOME>ABC"
EMSendKey "D:" & i_SERVICE & "12"
End Sub

Best practice is to always separate control keys i.e. those inside <..> from normal strings and always send control keys 1 at a time..

Sub Main
i_SERVICE = "N<"
' EMSendKey "<Erase_Input>"
EMSendKey "<Erase_EOF>"
EMSendKey "<HOME>"
EMSendKey "ABC"
EMSendKey "D:" & i_SERVICE & "12"
End Sub

p.s. bsbal18, you have not mentioned which version of Rumba you are using, so the issue you are encountering may be version specific.

Tom

I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script
I am using 9.4.1 Rumba. What ended up working is I did a replace function that replaced < with @< and it worked... but I worry there are other special characters I need to 'escape' on. @ndre, sorry I didn't paste my & originally to combine. It sounds like Tom wants me to test sending the <ENTER> etc in a separate SendKey (or SEndKeyFast).. I will try that. thanks!

I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script
I am using 9.4.1 Rumba. What ended up working is I did a replace function that replaced < with @< and it worked... but I worry there are other special characters I need to 'escape' on. @ndre, sorry I didn't paste my & originally to combine. It sounds like Tom wants me to test sending the <ENTER> etc in a separate SendKey (or SEndKeyFast).. I will try that. thanks!

I have code that takes input text file, and sends commands to Rumba Terminal 3270.  Whenever it gets to "N<" in my string variable, all hell breaks loose.  Below is snippet..

 

EMSendKey "<Home>UDU "  i_SERVICE & "AS" & "<Enter>"

 

So with i_SERVICE being "N<" it should send UDU N<AS <enter>

 

it works with thousands of other input lines,,, but the N< is causing chaos,,, N> works just fine... please help...


#Rumba
#Script
I am using 9.4.1 Rumba. What ended up working is I did a replace function that replaced < with @< and it worked... but I worry there are other special characters I need to 'escape' on. @ndre, sorry I didn't paste my & originally to combine. It sounds like Tom wants me to test sending the <ENTER> etc in a separate SendKey (or SEndKeyFast).. I will try that. thanks!