[Info-vax] DCL Time Manipulation
James J. O`Shea
seamas_ose at ameritech.net
Wed Aug 17 22:43:27 EDT 2011
Thanks for your suggestions.
Is there an ACCOUNTG command that filters overlap sessions to prevent accounting for sessions that are logged in the same time as other sessions? For example , if session 1 is logged in from 08:00 through 09:00 and session 2 is logged in from 08:15 through 08:45, we would only want to charge for 8:00 through 9:00, one hour. and not the 08:15 through 08:45(30 minutes), which would increase the total charge to 1:30(one hour thirty minutes).
Thanks,
Jim O'Shea
--- On Wed, 8/17/11, Jan-Erik Soderholm <jan-erik.soderholm at telia.com> wrote:
From: Jan-Erik Soderholm <jan-erik.soderholm at telia.com>
Subject: Re: [Info-vax] DCL Time Manipulation
To: info-vax at rbnsn.com
Date: Wednesday, August 17, 2011, 4:37 PM
Jan-Erik Soderholm wrote 2011-08-17 22:33:
> Stafford Winters wrote 2011-08-17 21:07:
>> On 8/17/2011 10:41 AM, James J. O`Shea wrote:
>>> I'm trying to get the amount of time a user is logged in monthy, using
>>> ACCOUNTNG. How can I get the sum of times in DCL?
>
> What about :
>
> $ account/since=1-aug-2011/typ=process/summary=user/report=elapsed
>
> Username Elapsed
> Time
> ------------------------------
> <user xxx> 0 00:10:00.27
> <user yyy> 0 00:01:06.38
> <user zzz> 5 07:38:23.79
> ...
> ...
> $
>
>
Or maybe, to limit to interactive sessions and get a sum for each month :
$ account /since=1-jan-2011 -
/type=proc -
/summary=(user,month) -
/report=elapsed -
/proc=inter
_______________________________________________
Info-vax mailing list
Info-vax at rbnsn.com
http://rbnsn.com/mailman/listinfo/info-vax_rbnsn.com
More information about the Info-vax
mailing list