Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trap Mainframe error in Attachmate

Status
Not open for further replies.

tweddell

IS-IT--Management
Dec 15, 2003
2
US
My macro occasionally runs into an unexpected condition and the mainframe (i guess) beeps and puts a little man up in the bottom line. I have to clear it with an escape but the macro keeps on going and I miss capturing data. Is there a way to trap the error and gracefully close the macro (or I could fix the error...)

Thanks,
Tom
 
Use the OIA.Xstatus method to capture these errors. I use this at every screen change.

Do While sess0.screen.oia.xstatus <> 0
doevents
loop

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top