And, if you know the job# and don't want to look up the input spool file#,
my 'spyjob' cmd file will do it for you, and show a little other info along
with the :printspf. I've posted it before, but just in case it might
help.....
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.
#
# 08/08/2003 Showing CPU seconds & milliseconds. Sadly,
# these do NOT reflect a program in progess, only
# MPE commands & completed programs.
----- Original Message -----
From: "Lars Appel" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, April 14, 2004 01:06
Subject: Re: [HP3000-L] Trace a running file...
> Gehan G. wrote:
>
> > <make belive land>
> > :showjob #j2121;moreinfoplease
> >
> > JOBNUM STATE INTRODUCED JOB NAME FILENAME
> > #J5144 EXEC TUE 1:51P ILIST,MANAGER.SYS ILST.DEEP.ACT.SYS
>
> While you cannot get the filename that has been STREAMed
> via regular MPE means (as the file might even have been a
> temporary one that is invisible to your session or might
> also have gone shortly after the STREAM invocation), you
> can glimpse at a copy of this file in the input spoolfile:
>
> :printspf I5144
>
> Works as long as the job is still running and if you have SM
> capability (or was it PM? not sure, which one). In the input
> spoolfile you will have the lines with the leading ! replaced
> by a leading : as far as I recall. And the !job card will be
> missing (already consumed be the STREAM commmand itself).
>
> Lars.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|