Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: "AEF" <spamsink2001@xxxxxxxxx>
- Date: 18 Feb 2006 23:09:54 -0800
David J Dachtera wrote:
Peter 'EPLAN' LANGSTOEGER wrote:
In article <43F6A30C.BCF5B109@xxxxxxxxxxx>, David J Dachtera <djesys.nospam@xxxxxxxxxxx> writes:
you can see, that the same entry number is used more than once per day.
And this is very annoying...
Anybody ? Hoff ?
Well, if I understand the issue, it sounds like you may be trying to
track batch jobs by their entry number.
Not at all. I only have a lot of (equally named) logfiles and I need
to find out why entry x failed (and hangs around retained on error).
Searching with the entry number (and the date) is not enough because
there are more than one entry number x per day. Thats all folks.
Well, SHOW ENTRY/FULL on a retained entry shows the time the job
completed. So, DIRECTORY/MODIFIED using /SINCE and /BEFORE should be
able to narrow it down:
DJAS01::DDACHTERA$ dir/noprot/nosize/date=(cre,mod) login.com;
Directory DKA0:[DDACHTERA]
LOGIN.COM;1 3-SEP-1997 16:24:35.65 28-NOV-1998 21:25:44.81
Total of 1 file.
DJAS01::DDACHTERA$ dir/mod/sin="28-NOV-1998 21:25"/bef="28-NOV-1998
21:26" login
.com
Directory DKA0:[DDACHTERA]
LOGIN.COM;1 1/9 3-SEP-1997 16:24:35.65
(RWED,RWED,RE,)
Total of 1 file, 1/9 blocks.
Sorry, didn't have a queue entry handy to use as an example, but that's
what I mean: bracket the target time using /SINCE and /BEFORE values
with MODIFIED and less granular sample time for each qualifier should
give you everything in that range.
That said, let me ask this: can you modify whatever SUBMITs the jobs?
If you can, try this:
$ SUBMIT/qualifier(s) filespec/HOLD
$ JENTRY = F$FAO( "!7ZL", '$ENTRY' )
$ SET ENTRY '$ENTRY'/LOG=[ddcu:<dir>]filename_'JENTRY'.LOG/NOHOLD
That will produce fewer logs to sift through since you can then get a
listing of every entry number used for that job in ascending order by
entry number.
Personally, though, I agree with Michael: if the job is retained on
error, that entry number won't be re-used so long as that queue remains
retained.
That's not his problem. Imagine his queue numbers run from 1 to 1000.
His system runs 3000 jobs one day. Now he has found that entry 442 has
been retained on error. Now which of the 3 log files that contain 442
is the one that was retained in the queue??? Even though job 442 may be
reatined in the queue, that same number may have been used earlier in
the day.
So, you'll know when the job ended and you can use
DIRECTORY/MODIFIED with /SINCE and /BEFORE to nail down the log file
based on the SHOW ENTRY/FULL display.
Depending how fast these jobs finish, you may even be able to use some
DCL code to accept a retained entry number and find the log by getting
the log spec. from F$GETQUI( "DISPLAY_ENTRY", "LOG_SPECIFICATION", ... )
(apply suitable defaults if that returns a null string) and by trimming
the fraction of the second off the F$GETQUI( "DISPLAY_ENTRY",
"JOB_COMPLETION_TIME", ... ).
$ JCMT = F$GETQUI( "DISPLAY_ENTRY", "JOB_COMPLETION_TIME", ... )
$ JRDT = F$ELEM( 0, ".", JCMT )
$ JRDT1 = F$CVTIME( "''JRDT'+00:00:01", "ABSOLUTE", )
$ JLOG = F$ELEM( 0, ";", log_filespec )
$ DIRECTORYX/SIZE=ALL/DATE/MOD/SIN=&JRDT/BEF=&JRDT1 &JLOG
Hope this helps...
Yes, something like this should work, but why not just SEARCH the
logfiles for error messages? Well, I suppose that would take some time
if he has thousands of them and we don't know how large they are or
what kinds of errors are encountered.
--
David J Dachtera
dba DJE Systems
http://www.djesys.com/
Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/
Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/
Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/
Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/
.
- Follow-Ups:
- Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: David J Dachtera
- Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- References:
- [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: Peter 'EPLAN' LANGSTOEGER
- Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: David J Dachtera
- Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: Peter 'EPLAN' LANGSTOEGER
- Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- From: David J Dachtera
- [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- Prev by Date: Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- Next by Date: Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- Previous by thread: Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- Next by thread: Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
- Index(es):
Relevant Pages
|