This file records the GUI user statistics when the BGU STATISTICS SITE PARAMETERS is set to Yes. This file records the sign-on/sign-off times by user. A statistical count of all calls is recorderd by call. Additional data about the connection is recorded.
HELP-PROMPT: Answer must be 1-8 characters in length.
DESCRIPTION:
This is the socket number passed from the BGUSYNC OCX to the server. The socket is unique to the session.
TECHNICAL DESCR:
The socket is established from a port address and IP address of the client and IP address and port of the server. This pair is unique to the entire world and assures that the partition is a unique user.
MUMPS CODE: X ^DD(90062.1,97,9.2) S X1=Y(90062.1,97,1) S X=$S(X&X1:X,1:"") Q:'X D H^%DTC S XUS1=%H*86400+%T,X=X1 D H^%DTC S XUS2=%H*86400+%T,X=$S(XUS1>XUS2:XUS1-XUS2,1:XUS2-XUS1)
9.2 = S Y(90062.1,97,2)=$S($D(^BGUSEC(D0,0)):^(0),1:"") S X=$S('$D(D0):"",D0<0:"",1:D0),Y(90062.1,97,1)=X S X=$P(Y(90062.1,97,2),U,4)
ALGORITHM: XUDELTATIME(#.001,#3)
DESCRIPTION:
This field calculates the number of seconds between sign-on time and sign-off time.
MUMPS CODE: S X1=$P(^BGUSEC(D0,0),U,4),X="" Q:X1<2000000 S X=D0,Y=$E(X1_"000",9,10)-$E(X_"000",9,10)*60+$E(X1_"00000",11,12)-$E(X_"00000",11,12),X2=X,X=$P(X,".",1)'=$P(X1,".",1) D ^%DTC:X S X=X*1440+Y
ALGORITHM: MINUTES(#3,#.001)
DESCRIPTION:
This is the amount of time the user has been signed on.
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER