removeAllPgmMsg()

This procedure removes allprogram messages sent for current call stack

ParameterTypeDescription
callStackEntry4096AMandatoryCall stack entry. The program name from call stack to which the message was sent.
callStackCount10I 0OptionalCall stack counter A number identifying the location in the call stack of the call stack entry to whose message queue the message is to be sent. The number is relative to the call stack entry identified by the Call stack entry parameter. It indicates how many calls up the call stack the target entry is from the one identified by the Call stack entry parameter. it could be 0 or any positive number.

Procedure returns indicator. *ON means, everything was ok. *OFF means, messages were not removed.

Examples:

if removeAllPgmMsg(Z1PGMN);
  ...
endif;
if removeAllPgmMsg(Z1PGMN: 0);
  ...
endif;