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




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/

.



Relevant Pages

  • Re: Do I need a RTOS?
    ... You pointed out the basic idea of having a regular timer (you ... exists and that delta queue insertion is already implemented [to be ... insertdq(SetPinHigh, 150); ... entry from the queue and executes the function. ...
    (comp.arch.embedded)
  • Re: Smart programming languages
    ... Ada has provided this since 1995 through its protected objects. ... The specification for my protected bounded circular queue is: ... A modular type, such as Queue_Index has a range modulo the number ... When a task calls a protected entry, ...
    (comp.programming)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... to find out why entry x failed. ... Sorry, didn't have a queue entry handy to use as an example, but that's ... ....is output to the log file, that will help naarow it down, but not ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: [OpenVMS Alpha V7.3-2] Batch/Print Job Numbering
    ... $ SUBMIT/qualifierfilespec/HOLD ... listing of every entry number used for that job in ascending order by ... Imagine his queue numbers run from 1 to 1000. ... ...is output to the log file, that will help naarow it down, but not ...
    (comp.os.vms)
  • Re: VB6 Application Overwhelmed by Rapid User Interaction
    ... entry the application behaves fine. ... store the new row index in a queue, you could use a timer to read ... the queue and display the data. ... A similar approach is to disable and reenable a timer when a row is selected, then in the timer event, just get the latest row. ...
    (microsoft.public.vb.winapi)