Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* accountng.dat
@ 1992-09-15 17:30 Dan O'Connell
  1992-09-16 13:30 ` accountng.dat meadows
  1992-09-16 15:47 ` accountng.dat jwenger
  0 siblings, 2 replies; 4+ messages in thread
From: Dan O'Connell @ 1992-09-15 17:30 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: accountng.dat
  1992-09-15 17:30 accountng.dat Dan O'Connell
@ 1992-09-16 13:30 ` meadows
  1992-09-16 15:47 ` accountng.dat jwenger
  1 sibling, 0 replies; 4+ messages in thread
From: meadows @ 1992-09-16 13:30 UTC (permalink / raw)


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                        *
***************************************************************************


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: accountng.dat
  1992-09-15 17:30 accountng.dat Dan O'Connell
  1992-09-16 13:30 ` accountng.dat meadows
@ 1992-09-16 15:47 ` jwenger
  1 sibling, 0 replies; 4+ messages in thread
From: jwenger @ 1992-09-16 15:47 UTC (permalink / raw)



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. 
>

$ SET ACCOUNTING/NEW_FILE will do just what you want: close the current
accounting file and open a new one. You can then do whatever pleases you
with the old file (archive it, for instance)

----
Jacques C. Wenger, University of Lausanne, Switzerland
jwenger@ulys.unil.ch


^ permalink raw reply	[flat|nested] 4+ messages in thread

* ACCOUNTNG.DAT
@ 1992-09-16 21:07 Dan O'Connell
  0 siblings, 0 replies; 4+ messages in thread
From: Dan O'Connell @ 1992-09-16 21:07 UTC (permalink / raw)


Thanks to all of you who answered my ACCOUNTNG.DAT request.
I got almost 10 replies. Appreciate!!
Regards,
D.O'C.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1992-09-16 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-09-16 21:07 ACCOUNTNG.DAT Dan O'Connell
  -- strict thread matches above, loose matches on Subject: below --
1992-09-15 17:30 accountng.dat Dan O'Connell
1992-09-16 13:30 ` accountng.dat meadows
1992-09-16 15:47 ` accountng.dat jwenger

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