You were working on the code
Unable to send messages to message subfile in RPGILE program
When you readc the subfile record
if the value is in error
put the error message id into your variable
run your subroutine to add error message to error message subfile
turn on an indicator on the Field with DSPATR(RI) to highlight the field
Update the subfile record.
Turn off the error DSPATR(RI) indicator after updating or reading the record.