Have you ever watched the WRKACTJOB display and wondered what JOBQ the active jobs came from?
The JOBLOG or QHST log will not show you this. There is only one way to get this important info, and this is how you need to execute the command.
WRKUSRJOB USER(*ALL) JOBTYPE(*BATCH) ASTLVL(*BASIC)
This job will show all batch jobs by any user by JOBQ! Keep in mind the assistance level must be set to *basic. This is info that should be in every jobs JOBLOG, but Big Blue felt otherwise.
Here's one more thing to keep in mind. Don't overuse this command, as it is very CPU- intensive and takes a while to display.