System Variables › &ZMLUSER
(Message profile variable) Contains the user ID the log message came from (available to &LOGREAD only).
&ZMLUSER is NULL if the message is not attributed to a specific user.