AZXPSPL ; GENERATED FROM 'AZXPSOLLIST' PRINT TEMPLATE (#411) [ 05/21/90 11:42 AM ]
G BEGIN
CP G CP^DIO2
C S DQ(C)=Y
S S Q(C)=Y*Y+Q(C) S:L(C)>Y L(C)=Y S:H(C)<Y H(C)=Y
P S N(C)=N(C)+1
A S S(C)=S(C)+Y
Q
D I Y=DITTO(C) S Y="" Q
S DITTO(C)=Y
Q
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
Q
DT I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1
W ?0 S Y=D0 D DT
S X=$S($D(^XUSEC(0,D0,0)):^(0),1:"") W ?20 S Y=$P(X,U,4) D DT
W ?40 X ^DD(3.081,98,9.2) S Y(3.081,98,101)=$S($D(^%ZIS(1,D0,1)):^(1),1:"") S X=$P(Y(3.081,98,101),U,1) S D0=Y(3.081,98,2) W $E(X,1,25) K Y(3.081,98)
W ?67 S X1=$P(^XUSEC(0,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 W $E(X,1,8) K Y(3.081,99) S Y=X,C=1 D A:Y'?."*"
K Y
Q
HEAD ;
W !,?67,"ELAPSED"
W !,?67,"TIME"
W !,?0,"SIGNON TIME",?20,"SIGNOFF TIME",?40,"LOCATION",?67,"(MINUTES)"
W !,"--------------------------------------------------------------------------------",!!
AZXPSPL ; GENERATED FROM 'AZXPSOLLIST' PRINT TEMPLATE (#411) [ 05/21/90 11:42 AM ]
+1 GOTO BEGIN
CP GOTO CP^DIO2
C SET DQ(C)=Y
S SET Q(C)=Y*Y+Q(C)
IF L(C)>Y
SET L(C)=Y
IF H(C)<Y
SET H(C)=Y
P SET N(C)=N(C)+1
A SET S(C)=S(C)+Y
+1 QUIT
D IF Y=DITTO(C)
SET Y=""
QUIT
+1 SET DITTO(C)=Y
+2 QUIT
N WRITE !
T IF $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 QUIT
DT IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
IF Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
IF Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+1 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
+2 WRITE ?0
SET Y=D0
DO DT
+3 SET X=$SELECT($DATA(^XUSEC(0,D0,0)):^(0),1:"")
WRITE ?20
SET Y=$PIECE(X,U,4)
DO DT
+4 WRITE ?40
XECUTE ^DD(3.081,98,9.2)
SET Y(3.081,98,101)=$SELECT($DATA(^%ZIS(1,D0,1)):^(1),1:"")
SET X=$PIECE(Y(3.081,98,101),U,1)
SET D0=Y(3.081,98,2)
WRITE $EXTRACT(X,1,25)
KILL Y(3.081,98)
+5 WRITE ?67
SET X1=$PIECE(^XUSEC(0,D0,0),U,4)
SET X=""
IF X1<2000000
QUIT
SET X=D0
SET Y=$EXTRACT(X1_"000",9,10)-$EXTRACT(X_"000",9,10)*60+$EXTRACT(X1_"00000",11,12)-$EXTRACT(X_"00000",11,12)
SET X2=X
SET X=$PIECE(X,".",1)'=$PIECE(X1,".",1)
IF X
DO ^%DTC
SET X=X*1440+Y
WRITE $EXTRACT(X,1,8)
KILL Y(3.081,99)
SET Y=X
SET C=1
IF Y'?."*"
DO A
+6 KILL Y
+7 QUIT
HEAD ;
+1 WRITE !,?67,"ELAPSED"
+2 WRITE !,?67,"TIME"
+3 WRITE !,?0,"SIGNON TIME",?20,"SIGNOFF TIME",?40,"LOCATION",?67,"(MINUTES)"
+4 WRITE !,"--------------------------------------------------------------------------------",!!