Skip to main content

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
This script can replicate the error (but it can take a few hours)

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Main

do
EMSetTN3270 "a.tn3270.host.address", "23", "4", "ExtendedDS"
EMStartSession "*", "RumbaLogin"

'Would login & do something here..
Sleep (5000)

'the processing has ended so close down session
EMDisconnectExit "RumbaLogin" 'rumba configured not to ask for session saving

'would wait 5 mins and then loop, 1 min only here
Sleep (60000)

Loop

End Sub

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
We recently released a HotFix for the RUMBA ScriptEngine fixing an issue with EMStartSession
Please get in contact with our SupportLine to receive more information.

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
Thanks, but the latest version still suffers form the same behaviour.

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
Thanks, but the latest version still suffers form the same behaviour.

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
Thanks, but the latest version still suffers form the same behaviour.

[Migrated content. Thread originally posted on 02 May 2012]

Hi,

We have a script that runs in a loop -> Opens session, logs in, processes data, closes session, waits 5mins then starts again.

After approx 4hours of looping like this the script will hang. This appears to be immediately after a EMStartSession command is issued and the only way to close it is by ending the script engine process. At this stage the session has been opened but the logon information has not been sent to the screen.

Any ideas on what the cause could be?


#Rumba
We have a workaround. Instead of using EMDisconnectExit in the the loop & EMStartSession we now use EMDisconnect & EMConnect in the loop which doesn't suffer from the same issue.

Script now more like

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Main

EMSetTN3270 "a.tn3270.host.address", "23", "4", "ExtendedDS"
EMStartSession "*", "RumbaLogin"

do


'Would login & do something here..
Sleep (5000)

'the processing has ended so close down session
EMDisconnect "RumbaLogin"

'would wait 5 mins and then loop, 1 min only here
Sleep (60000)
emconnect "RumbaLogin"

Loop

End Sub