20 pts.
 DSPLOG For User
How do I display a log for a user? I use DSPLOG, but it requires the job name and job number. I want to display all jobs for this one user. Is there another command I can use?

Software/Hardware used:
ASKED: April 11, 2008  5:39 PM
UPDATED: April 9, 2010  3:47 AM

Answer Wiki:
Normally when I think of a log for a user I think of a job log rather than the QHST log. If you are seeking the job logs for a given user then a command such as 'WRKJOBLOG JOBLOGSTT(*PENDING *SPOOLED) PERIOD((*AVAIL *BEGIN) (*AVAIL *END)) JOB(MY_USER/*ALL)' would show the list of pending and spooled job logs for the user MY_USER. Is this what you're looking for? It tells me that Command WRKJOBLOG in Library *LIBL not found. WRKJOBLOG is a V5R4 command. You are evidently on an earlier release.
Last Wiki Answer Submitted:  April 24, 2008  1:32 pm  by  Mcuffy   20 pts.
All Answer Wiki Contributors:  Mcuffy   20 pts. , bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You can also use the WRKUSRJOB which shows all job including past interactive and batch jobs that have output still associated with then including joblogs, etc. It also shows all jobs in the jobq and any active job.

 2,310 pts.

 

As is often the case, if your system isn’t configured to collect information, it probably isn’t collecting the information.

For “all jobs” for a user, you might retrieve JS entries from the system audit journal or JB entries from the system accounting journal.

It’s unlikely that anything else will give you a reasonably complete list. (Though the QHST* history log files are pretty good.)

Tom

 108,055 pts.