I have a clp that checks modules/jobs that run under my subsystems. I'm not sure what mon message it is giving me since none is shown if the job is not active. Only thing that is shown to me is the wrkactjob screen with (No active jobs to display). I would like for when this event occurs, to send me a message. I have everything in place, script wise, (I THINK) but dont know what mon msg to have it look for so that it will skip over the (**other code**) and alert me to the non active mod.
You can always determine what messages can be monitored for a command by prompting the command, pressing F1=Help, then pressing F2=Extended help. Scroll to the bottom of the extended help to see the list of possible error messages.
For WRKACTJOB, you should see a list like this:
Error messages for WRKACTJOB
*ESCAPE Messages
CPF1093 Override of file device type not valid.
CPF9845 Error occurred while opening file &1.
CPF9846 Error while processing file &1 in library &2.
CPF9847 Error occurred while closing file &1 in library &2.
CPF9850 Override of printer file &1 not allowed.
CPF9851 Overflow value for file &1 in &2 too small.
CPF9871 Error occurred while processing.
As you discovered, the WRKACTJOB command wasn't appropriate. But you could do some additional research if the messages aren't clear by running, for example, DSPMSGD CPF9871 to check the full text of messages that might seem relevant.
Tom
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply