AS/400 HACL automation with PCOMM, getting message line text

5 pts.
Tags:
AS/400 Client Access
HACL
IBM iSeries
PCOMM
I am working on a data entry robot using MS Excel and IBM Personal Communications (AS/400) with the Host Access Class Library (COM Object). I need to get the text from the Message line (Comes from an ERRMSG in a Display file) I know PCOMM displays this text in the Status line at the bottom of the screen (Gray bar). Does anyone know how to do this? I cannot find anything about this in the HACL Programmer's manuals.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Well for anyone who is trying to answer the same question as I was, the trick is that you need to have the PCOMM session configured with the status bar configured to NOT show error messages (via Menu Option:  Edit | Preferences | Appearance | Window Setup | Status Bar 5250 Line 25, set the checkbox to UNCHECKED.  Then error messages will be displayed on Line 24 and can be retrieved using the GetText method (i.e. autECLSession.autECLPS.GetText(24, 2, 78)) )

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following