Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering



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. 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...

--
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/
.



Relevant Pages

  • Re: Deleting alias files (blocks deleted)
    ... >>> Fine example AEF. ... >>> not through an direct attribute of the entry. ... The fiel name in teh header is ... > Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... He posits that entry number re-use is hindering ... A job SUBMITted /HOLD once a minute for a day would yield 1440 entry ... Unofficial Affordable OpenVMS Home Page: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: Deleting alias files (blocks deleted)
    ... >>DELETE will remove the directory entry and $DELETE the file. ... back-link FID does not match of the FID of the directory where the entry ... Unofficial OpenVMS Hobbyist Support Page: ... Unofficial Affordable OpenVMS Home Page: ...
    (comp.os.vms)
  • Re: F$GETJPI doesnt match SHOW PROCESS/ACCOUNTING
    ... David has forgotten more about DCL than most programmers ever know, ... On available batch queue NODE$BATCH ... the standard SHOW ENTRY display. ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... David J Dachtera wrote: ... to find out why entry x failed. ... Sorry, didn't have a queue entry handy to use as an example, but that's ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)