SNDPGMMSG MSGID(&MSGID) MSGF(ERRMSGC) MSGDTA(&MSGDATA)
I have added some new code to some old programs and am getting some strange things happening. I create a Cl as indicated above that I call in my RPG?? Program to display and added a Message subfile (*ind58, to control the display) to the Display File to handle the programmed controled messages, hard errors (*ind80 = *on) and soft errors (*ind80 = *off).
When the data entry program runs I sometimes see the messages on line 24 and sometimes Not. If the messages do not display I can force them to appear by creating a hard error? In all cases if I press Shift ESC to and 3 to work with job, then 10 to look at the job log, I always see the messages that should appear on line 24.
These old programs also have some screen controled error message handling, and these messages usually appear on a windows line below line 24. I'm not sure if the combination of message handling or improper code additions are causing my problem.
Thanks for any assistance