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
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
BTW, if you have a 24×80 display, why use line 12? (And why does your MSGLOC keyword say “16″ rather than “12″?) — Tom
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.