Subject: | |
From: | |
Reply To: | Emerson, Tom |
Date: | Fri, 5 Dec 2003 11:58:43 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> -----Original Message-----
> From: Ron Horner [mailto:[log in to unmask]]
>
> In logtool, you could to a SUMMARIZE ;log=0000/9999 [...]
> If the file does not exist, you just get a warning message.
> -----Original Message-----
> Bob McGregor
>
> But what I'm looking to do is schedule a job say on Saturday
> night to go through the existing logs for the summarize output so we at
> least see if there are increases in types of records.
Hmmm... I get the impression that Ron's answer is "almost", [and will certainly work for the first week], but for the second week you want to exclude what you "processed" last week, correct?
It may be doable with a LISTFILE;SELEQ=[...] construct, but I suspect an MPEX selection will be much faster/easier:
%listf [log in to unmask](credate>today-8),6 > somefile
%input firstlogfile < somefile
%setvar firstlognum rht(token(firstlogfile,'.'),4)
%runcreate logtool.pub.sys
%runinput SUMMARIZE log=!FIRSTLOGNUM/9999
%runinput exit
%runactivate
[runcreate/input/activate is cool...]
the "rht(token..." stuff pulls the filename out of a fully-qualified file, then returns the right-most 4 characters (digits) to the variable.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|