From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,95cd46ec2f40945 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-09-16 01:56:52 PST Newsgroups: comp.sys.dec Path: sparky!uunet!news.uiowa.edu!news.weeg.uiowa.edu!cslvax.weeg.uiowa.edu!MEADOWS From: meadows@cslvax.weeg.uiowa.edu Subject: Re: accountng.dat Message-ID: <1992Sep16.133042.29934@news.weeg.uiowa.edu> Sender: news@news.weeg.uiowa.edu (News) Nntp-Posting-Host: cslvax.weeg.uiowa.edu Reply-To: meadows@cslvax.weeg.uiowa.edu Organization: U. of Iowa - Weeg Computing Center References: <1992Sep15.173018.10960@newshub.ccs.yorku.ca> Date: Wed, 16 Sep 1992 13:30:42 GMT 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 * ***************************************************************************