Error Message Display
We have written an RPG program that runs on a Hand Held RF Scanner running a 5250 emulation program. We defined the screen to display error messages on line 12 o fhte display. When we run the program on the scanner or a standard display screen, the error message always displays on line 24. Any idea why the error message goes to line 24 and not line 12 as we defined? We have tried using the MSGLOC command and that is not working DSPSIZ(24 80 *DS3) MSGLOC(16) CHGINPDFT PRINT(*LIBL/QSYSPRT) INDARA

Software/Hardware used:
I-Series V6R2 O/S
ASKED: October 18, 2012  2:32 PM
UPDATED: October 18, 2012  4:42 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. SteveLane66285   5 pts. , Michael Tidmarsh   11,410 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

What record is active when the problem occurs? What lines does it cover? What kinds of messages are you seeing the problem on? (I.e., what keywords, actions or code generates the messages?) You don’t show that you use the ERRSFL keyword; do you have a message subfile? — Tom

 108,330 pts.

 

BTW, if you have a 24×80 display, why use line 12? (And why does your MSGLOC keyword say “16″ rather than “12″?) — Tom

 108,330 pts.

 

are you trying to run the same program and display file on 2 types of devices with different screen sizes ?  That sounds like the problem. The DDS  needs to have display setting for the appropriate device. If you try to open a full 24×80 on a hand-held it will probably fail unless the resolution is high enough. 

 3,915 pts.