If you know the message ID of the message you are trying to find in History log, you can use the DSPLOG command with MSGID and you will only see Messages with that message ID. For example:
DSPLOG MSGID(CPF0000) will display only messages starting with CPF as their message IDs.
Writing to History log:
Use the following command to write to the History log:
SNDMSG MSG('Message text') TOMSGQ(*HSTLOG)
This was first published in June 2001
Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.