Function SET185E - Delete Answered Messages

LANSA

Function SET185E - Delete Answered Messages
FUNCTION OPTIONS(*DIRECT);
********** COMMENT(=======================================================);
********** COMMENT(This function is used to delete all answered messages);
********** COMMENT(=======================================================);
CHANGE FIELD(#S_185FON) TO(U);
CALL PGM(SETGETMSGQ) PARM(#S_185QUE #S_185FON #S_185KEY #S_185LVL1 #S_185MSGI #S_185SEV #S_185SEND #S_185RTNT) NUM_LEN(*DEFINED);
IF COND('#S_185RTNT *NE OK');
MESSAGE MSGTXT('Error when removing all answered messages');
ELSE;
MESSAGE MSGTXT('All answered messages have been removed');
ENDIF;
********** COMMENT(--------);
********** COMMENT(Finished);
********** COMMENT(--------);
RETURN;