1825780 Members
2492 Online
109687 Solutions
New Discussion

Timing queue jobs

 
Martin Brindle
Occasional Advisor

Timing queue jobs

I need to perform some simple performance timing of a batch job submitted to the batch queue. How is it possible to monitor when a job has completed and print a start and end time?

Thanks in advance.
5 REPLIES 5
labadie_1
Honored Contributor

Re: Timing queue jobs

If you have enabled the accounting, you will get some info.

$ show acc
will tell you if you have accounting enabled

If it is, you can get some info with
$ acc/fu/since=16:00/bef=17:00/out=a.tmp
if you job has run between 16:00 and 17:00

You can refine with
/user=myuser
/queue=my_batch_queue
...

The best thing is to prepare some tools before you run the process

You can find pquota.exe at
http://h71000.www7.hp.com/freeware/freeware40/pquota/

Put it somewhere, e.g. in disk:[dir]
define a symbol
$ pquota :== $ disk:[dir]pquota.exe
then you can do
$ pquota 204002B4
if you want to see the resources used by this process
Volker Halle
Honored Contributor

Re: Timing queue jobs

Martin,

if this batch job does have a log file, you can easily find the start and end date with:

$ DIR/DATE=(CRE,MOD) batch-log-file.LOG

Volker.
Martin Brindle
Occasional Advisor

Re: Timing queue jobs

Thanks for the responses. However, I realised the answer was in my question, so I came up with this, which I called timer.com

$ SHOW TIME
$ @'P1' 'P2' 'P3' 'P4' 'P5' 'P6' 'P7' 'P8'
$ SHOW TIME

I then ran timer.com passing the name of the script to benchmark as the first parameter and then subsequyently all of it's parameters behind. It seems to work really well.
Jan van den Ende
Honored Contributor

Re: Timing queue jobs

Martin,

this might be more than you want, but if you add this to SYS$SYLOGIN:

$ if f$getjpi("","mode") .eqs. "BATCH"
$ then
$ set prefix "!11%T "
$ endif

than the DCL "prompt" in the LOG files will be the first 11 chars of the time (hh:mm:ss.cc) of the time that line is executed.

We simply LOVE it for tracing performance issues!

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Jess Goodman
Esteemed Contributor

Re: Timing queue jobs

I have attached my MEASURE.COM procedure which outputs elapsed time, I/O counts, page faults and CPU use for any command line.

@MEASURE a command line up to 8 parameters
Elapsed secs: 2.90 DIO: 20 BIO: 4461 PGF: 82 CPU: 0.16
I have one, but it's personal.