I'm trying to use the following code to automate the process of checking for successors to mainframe jobs which have failed. Here is my code:
When I run the macro, it assigns something strange to Jobname instead of the actual value. I ends up making jobname something like "zd succ job lev *". There appear to be some characters when I add a watch for that variable, but the characters do not represent anything anywhere on the current screen.
I'm truly stumped on this one as I have no clue as to why it won't just grab what's on the screen!
Thanks in advance,
Chris
Code:
Dim MyScreen as object
Set MyScreen = Sess0.screen
CurrentRow = MyScreen.Row
CurrentCol = MyScreen.Col
JobName = Sess0.Screen.GetString(CurrentRow,CurrentCol,8)
MyScreen.moveto 41,15
Sendkeys "zd succ job " + jobname + " lev *"
When I run the macro, it assigns something strange to Jobname instead of the actual value. I ends up making jobname something like "zd succ job lev *". There appear to be some characters when I add a watch for that variable, but the characters do not represent anything anywhere on the current screen.
I'm truly stumped on this one as I have no clue as to why it won't just grab what's on the screen!
Thanks in advance,
Chris