5 pts.
 AS/400 HACL automation with PCOMM, getting message line text
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.

Software/Hardware used:
ASKED: April 2, 2009  4:56 PM
UPDATED: April 2, 2009  5:19 PM

Answer Wiki:
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)) )
Last Wiki Answer Submitted:  August 16, 2012  5:22 am  by  mmob00   15 pts.
All Answer Wiki Contributors:  mmob00   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _