OPTION NOLIST parm JOB_NUM="" if "!JOB_NUM" = "" echo Job# to list is required 1st & only parm echo Example: spyjob 1234 return endif if jinfo('#j!JOB_NUM', 'exist') = false echo No such job as #j!JOB_NUM return endif echo Streamed by ![jinfo('#j!JOB_NUM', 'StreamedBy')] & at ![jinfo('#j!JOB_NUM', 'FmtStreamedByTime')] & on ![jinfo('#j!JOB_NUM', 'FmtStreamedByDate')] & on ldev ![jinfo('#j!JOB_NUM', 'StreamedByLdev')] if jinfo('#j!JOB_NUM', 'executing') = true echo CPU seconds so far = ![jinfo('#j!JOB_NUM','CPUSec')] echo CPU milliseconds = ![jinfo('#j!JOB_NUM','CPUMilliSec')] endif setvar _x jinfo('#j!JOB_NUM', 'stdinspid') printspf !_x.in.hpspool deletevar _x return # Cmd file to display the contents of a job that is running # or still in the in-queue. Works under MPEX, not in break. # Does not show the JOB line, or any part that has already # run. # # Dave Powell, MMfab # # # CPU seconds & milliseconds: sadly, these do not reflect # a program in progess, only completed programs or commands. # # To-do (maybe) # - show the output spoolfile id, and/or show its contents # and/or set a lasting variable to its spoolfile id #, to # pass to later spool-file viewers, etc. # Note: stdlist filename s/be in 'StdlistSPID', format 'Onnnn'. # - show the jobs status, etc (other calls to jinfo).