System Variables › &ZMALLMSG
(Message profile variable) Indicates whether the message was generated by a MSG ALL command. Value is YES or NO.