Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: meadows@cslvax.weeg.uiowa.edu
Subject: Re: accountng.dat
Date: Wed, 16 Sep 1992 13:30:42 GMT	[thread overview]
Message-ID: <1992Sep16.133042.29934@news.weeg.uiowa.edu> (raw)
In-Reply-To: 1992Sep15.173018.10960@newshub.ccs.yorku.ca

In article <1992Sep15.173018.10960@newshub.ccs.yorku.ca>, dan@writer.yorku.ca (Dan O'Connell) writes:
>Please help:
>Can someone tell me how to start up a new ACCOUNTNG.DAT file.
>The one we have is about 3 years old and it eats up almost
>64k blocks. 
>Yeah, I know, look in the operations manual. I did, but some
>scumbag has taken the pages out!!!
>Thanks for your help.
>Daniel O'Connell
>Faxtel Information  Systems
>
    In short, you need to use the ACCOUNTING/BINARY/SINCE=/OUTPUT= command.
This will create a new accounting file with only records since the date
you specify. We purge ours about every two to three months. I've made a
small command file to do this, and I submit it to batch when needed. I've 
included a generic copy of the file below. You can edit it to replace the
DEVICE:[DIRECTORY] with your own specifications. You'll probably also
want to edit the line that enables accounting to specify only the types
YOU want accounting to keep track of.

-Howard
================================ CUT HERE ==================================
$!===================================================================+
$! ACCTPURGE.COM                                                     !
$!                                                                   !
$! Command file to shorten the accounting data base to include       !
$! only records since a specified date. The date is passed to the    !
$! procedure with the P1 parameter. If it is omitted, and this is    !
$! being run interactively, the user will be prompted for the        !
$! required date. If it is omitted and this is being run in batch    !
$! mode, the procedure will exit with an error message.              !
$!                                                                   !
$!===================================================================+
$!
$ If ((P1 .EQS. "") .AND. (F$Mode() .EQS. "INTERACTIVE")) Then GoTo Prompt
$ If ((P1 .EQS. "") .AND. (F$Mode() .NES. "INTERACTIVE")) Then GoTo Err_Exit
$Start:
$ Accounting/Binary/OutPut=DEVICE:[DIRECTORY]TempAcc.Dat -
  /Since='P1'
$ Set Accounting/Disable
$ Delete Sys$Manager:Accountng.Dat;*
$ Copy DEVICE:[DIRECTORY]TempAcc.Dat Sys$Manager:Accountng.Dat
$ Delete DEVICE:[DIRECTORY]TempAcc.Dat
$ Set Accounting -
  /Enable=(process,interactive,login,subprocess,detached,batch,network,message)
$ Exit
$Prompt:
$ Inquire/NoPunc P1 "Since Date: "
$ If (P1 .EQS. "") Then GoTo Prompt
$ GoTo Start
$Err_Exit:
$ Write Sys$OutPut "%ACCTPURGE-F-NODATE, Required Since Date missing..."
$ Exit

***************************************************************************
* Howard Meadows       Sr. Systems Programmer     Weeg Computing Center   *
* University Of Iowa   Iowa City, Iowa  52242     Phone: 319-335-5519     *
*                  email: howard-meadows@uiowa.edu                        *
***************************************************************************


  reply	other threads:[~1992-09-16 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-15 17:30 accountng.dat Dan O'Connell
1992-09-16 13:30 ` meadows [this message]
1992-09-16 15:47 ` accountng.dat jwenger
  -- strict thread matches above, loose matches on Subject: below --
1992-09-16 21:07 ACCOUNTNG.DAT Dan O'Connell
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox