Good day everyone,
I may have mentioned this before, but I am fairly new at AS400 and am trying to get certain script functions to work.
Anyway, I currently connected to 6 different sessions at once, and I have a script to check all of them for system status, however, it breaks if some/all of them are signed out.
How can I use the "If" statement to say "If screen displays Sign In, (Enter credentials) then continue."
Here is my current script. It's a very basic and a simple one, i'm just having trouble getting it to read the screen and then use the if statement.
Sub Main
EMConnect "A"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
EMConnect "B"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
EMConnect "C"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
EMConnect "D"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
EMConnect "E"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
EMConnect "F"
EMSetCursor 20, 7
EMSendKey "DSPMSG QSYSOPR<Enter>"
End Sub
#Rumba




