MCAROH11 ; GENERATED FROM 'MCARHOLT1' PRINT TEMPLATE (#979) ; 10/04/96 ; (continued)
G BEGIN
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)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
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 S DISTP=$G(DISTP),DILCT=$G(DILCT)
S X=$G(^MCAR(691.6,D0,6)) D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,1) W:Y]"" $J(Y,8,0)
D N:$X>48 Q:'DN W ?48 W "BLOCKED APCS"
S X=$G(^MCAR(691.6,D0,4)) D N:$X>3 Q:'DN W ?3 S Y=$P(X,U,15) W:Y]"" $J(Y,8,0)
D N:$X>12 Q:'DN W ?12 W "COUPLETS"
D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,26) W:Y]"" $J(Y,8,0)
D N:$X>48 Q:'DN W ?48 W "COUPLETS"
D N:$X>3 Q:'DN W ?3 S Y=$P(X,U,17) W:Y]"" $J(Y,8,0)
D N:$X>12 Q:'DN W ?12 W "BEATS IN RUNS"
S X=$G(^MCAR(691.6,D0,6)) D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,2) W:Y]"" $J(Y,8,0)
D N:$X>48 Q:'DN W ?48 W "RUNS SV-T"
S X=$G(^MCAR(691.6,D0,4)) D N:$X>3 Q:'DN W ?3 S Y=$P(X,U,18) W:Y]"" $J(Y,8,0)
D N:$X>12 Q:'DN W ?12 W "BEATS IN LONGEST RUN"
S X=$G(^MCAR(691.6,D0,6)) D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,3) W:Y]"" $J(Y,8,0)
D N:$X>48 Q:'DN W ?48 W "BEATS IN RUNS"
S X=$G(^MCAR(691.6,D0,4)) D N:$X>3 Q:'DN W ?3 S Y=$P(X,U,19) W:Y]"" $J(Y,8,0)
D N:$X>12 Q:'DN W ?12 W "BEATS FASTEST RUN AT"
D N:$X>33 Q:'DN W ?33 S Y=$P(X,U,20) W:Y]"" $J(Y,3,0)
D N:$X>37 Q:'DN W ?37 W "BPM"
S X=$G(^MCAR(691.6,D0,6)) D N:$X>40 Q:'DN W ?40 S Y=$P(X,U,4) W:Y]"" $J(Y,7,0)
D N:$X>48 Q:'DN W ?48 W "BEATS IN LONGEST RUN"
D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,5) W:Y]"" $J(Y,8,0)
D N:$X>48 Q:'DN W ?48 W "BTS FASTEST RUN AT"
D N:$X>67 Q:'DN W ?67 S Y=$P(X,U,6) W:Y]"" $J(Y,3,0)
D N:$X>71 Q:'DN W ?71 W "BPM"
D T Q:'DN D N D N:$X>7 Q:'DN W ?7 X DXS(4,9) K DIP K:DN Y W X
K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMCAROH11 2146 printed Oct 16, 2024@18:14:06 Page 2
MCAROH11 ; GENERATED FROM 'MCARHOLT1' PRINT TEMPLATE (#979) ; 10/04/96 ; (continued)
+1 GOTO BEGIN
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 SET DISTP=DISTP+1
SET DILCT=DILCT+1
if '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 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
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 if '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 SET X=$GET(^MCAR(691.6,D0,6))
if $X>39
DO N
if 'DN
QUIT
WRITE ?39
SET Y=$PIECE(X,U,1)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+3 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "BLOCKED APCS"
+4 SET X=$GET(^MCAR(691.6,D0,4))
if $X>3
DO N
if 'DN
QUIT
WRITE ?3
SET Y=$PIECE(X,U,15)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+5 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "COUPLETS"
+6 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
SET Y=$PIECE(X,U,26)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+7 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "COUPLETS"
+8 if $X>3
DO N
if 'DN
QUIT
WRITE ?3
SET Y=$PIECE(X,U,17)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+9 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "BEATS IN RUNS"
+10 SET X=$GET(^MCAR(691.6,D0,6))
if $X>39
DO N
if 'DN
QUIT
WRITE ?39
SET Y=$PIECE(X,U,2)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+11 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "RUNS SV-T"
+12 SET X=$GET(^MCAR(691.6,D0,4))
if $X>3
DO N
if 'DN
QUIT
WRITE ?3
SET Y=$PIECE(X,U,18)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+13 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "BEATS IN LONGEST RUN"
+14 SET X=$GET(^MCAR(691.6,D0,6))
if $X>39
DO N
if 'DN
QUIT
WRITE ?39
SET Y=$PIECE(X,U,3)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+15 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "BEATS IN RUNS"
+16 SET X=$GET(^MCAR(691.6,D0,4))
if $X>3
DO N
if 'DN
QUIT
WRITE ?3
SET Y=$PIECE(X,U,19)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+17 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "BEATS FASTEST RUN AT"
+18 if $X>33
DO N
if 'DN
QUIT
WRITE ?33
SET Y=$PIECE(X,U,20)
if Y]""
WRITE $JUSTIFY(Y,3,0)
+19 if $X>37
DO N
if 'DN
QUIT
WRITE ?37
WRITE "BPM"
+20 SET X=$GET(^MCAR(691.6,D0,6))
if $X>40
DO N
if 'DN
QUIT
WRITE ?40
SET Y=$PIECE(X,U,4)
if Y]""
WRITE $JUSTIFY(Y,7,0)
+21 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "BEATS IN LONGEST RUN"
+22 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
SET Y=$PIECE(X,U,5)
if Y]""
WRITE $JUSTIFY(Y,8,0)
+23 if $X>48
DO N
if 'DN
QUIT
WRITE ?48
WRITE "BTS FASTEST RUN AT"
+24 if $X>67
DO N
if 'DN
QUIT
WRITE ?67
SET Y=$PIECE(X,U,6)
if Y]""
WRITE $JUSTIFY(Y,3,0)
+25 if $X>71
DO N
if 'DN
QUIT
WRITE ?71
WRITE "BPM"
+26 DO T
if 'DN
QUIT
DO N
if $X>7
DO N
if 'DN
QUIT
WRITE ?7
XECUTE DXS(4,9)
KILL DIP
if DN
KILL Y
WRITE X
+27 KILL Y
KILL DIWF
+28 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!