ACR130 ; GENERATED FROM 'ACR TRAVEL ORDER DISPLAY' PRINT TEMPLATE (#3853) ; 09/30/09 ; (FILE 9002196, MARGIN=80)
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)
I $D(DXS)<9 M DXS=^DIPT(3853,"DXS")
S I(0)="^ACRDOC(",J(0)=9002196
W ?0 K ACRX K DIP K:DN Y
W ?11 X DXS(1,9) K DIP K:DN Y
W ?22 X DXS(2,9) K DIP K:DN Y
W ?33 X DXS(3,9) K DIP K:DN Y
W ?44 X DXS(4,9) K DIP K:DN Y
W ?55 X DXS(5,9) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "[1 ]*ORIG/AMEND:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[16] OTHER.....:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?58 S Y=$P(X,U,4) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[2 ] ORDR AMEND:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,20) S Y=$S(Y="":Y,$D(^ACRDOC(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,17)
D N:$X>40 Q:'DN W ?40 W "[17] SPECIFY...:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?58,$E($P(X,U,7),1,15)
D N:$X>0 Q:'DN W ?0 W "[3 ]*TRAVELER..:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,9) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>40 Q:'DN W ?40 W "[18] PCS TRANS.:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W " POSITION..:"
W ?18 I $D(ACREMPDA),ACREMPDA W $E($P($G(^VA(200,ACREMPDA,20)),U,3),1,20) K DIP K:DN Y
D N:$X>40 Q:'DN W ?40 W "[19] TEMP QTRS.:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W " RANK......:"
W ?18 I $D(ACREMP),ACREMP]"" W $P(ACREMP,U,3)_"-"_$P(ACREMP,U,4) K DIP K:DN Y
D N:$X>40 Q:'DN W ?40 W "[20] RESID TRNS:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(11,Y)):DXS(11,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[4 ]*ORGANIZATN:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,12) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,20)
D N:$X>40 Q:'DN W ?40 W "[21] TEMP STOR.:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,4) W:Y]"" $S($D(DXS(12,Y)):DXS(12,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[5 ]*STATION...:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,13) S Y=$S(Y="":Y,$D(^AUTTLOC(Y,0))#2:$P(^(0),U),1:Y) S Y=$S(Y="":Y,$D(^DIC(4,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,20)
D N:$X>40 Q:'DN W ?40 W "[22] HOUSE HUNT:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,5) W:Y]"" $S($D(DXS(13,Y)):DXS(13,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[6 ]*DEPARTURE.:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,14) D DT
D N:$X>40 Q:'DN W ?40 W "[23] MISCELANOS:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(14,Y)):DXS(14,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[7 ] RETURN....:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,15) D DT
D N:$X>40 Q:'DN W ?40 W "[24] 355 SIGNED:"
S X=$G(^ACRDOC(D0,"TOPCS")) W ?58 S Y=$P(X,U,7) W:Y]"" $S($D(DXS(15,Y)):DXS(15,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[8 ] POV.......:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(16,Y)):DXS(16,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[25]*TRAVELER..:"
W ?58 I $D(ACRX(18,1)),ACRX(18,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TO")) S Y=$P(X,U,18) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[9 ] MILE RATE.:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,10) W:Y]"" $J(Y,6,3)
D N:$X>40 Q:'DN W ?40 W "[26]*RECMD'D BY:"
W ?58 I $D(ACRX(16,1)),ACRX(16,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TO")) S Y=$P(X,U,16) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[10] GSA VEHICL:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(17,Y)):DXS(17,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[27] TITLE.....:"
S X=$G(^ACRDOC(D0,"TO")) W ?58,$E($P(X,U,17),1,20)
D N:$X>0 Q:'DN W ?0 W "[11] AUTO RENT.:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(18,Y)):DXS(18,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[28]*AUTHRZD BY:"
W ?58 I $D(ACRX(2,1)),ACRX(2,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TOAU")) S Y=$P(X,U,2) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[12] EXC BAGAGE:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,5) W:Y]"" $S($D(DXS(19,Y)):DXS(19,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[29] TITLE.....:"
S X=$G(^ACRDOC(D0,"TOAU")) W ?58,$E($P(X,U,1),1,20)
D N:$X>0 Q:'DN W ?0 W "[13] REGIS FEE.:"
S X=$G(^ACRDOC(D0,"TOSA")) W ?18 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(20,Y)):DXS(20,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[30] ATM ATHZD.:"
S X=$G(^ACRDOC(D0,"TO")) W ?58 S Y=$P(X,U,22) W:Y]"" $S($D(DXS(21,Y)):DXS(21,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "[14] PD RATE...:"
W ?18 X DXS(6,9) K DIP K:DN Y W X
D N:$X>40 Q:'DN W ?40 W "[31]*FUNDS AVAL:"
W ?58 I $D(ACRX(1,1)),ACRX(1,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"FA")) S Y=$P(X,U,2) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[15] TRAVEL ADV:"
S X=$G(^ACRDOC(D0,"TO")) W ?18 S Y=$P(X,U,19) W:Y]"" $S($D(DXS(22,Y)):DXS(22,Y),1:Y)
D N:$X>40 Q:'DN W ?40 W "[32]*IDENTIFIER:"
S X=$G(^ACRDOC(D0,0)) W ?58,$E($P(X,U,14),1,16)
D N:$X>40 Q:'DN W ?40 W "[33] COST COMP.:"
S X=$G(^ACRDOC(D0,"TOAU")) W ?58 S Y=$P(X,U,6) W:Y]"" $J(Y,8,2)
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
ACR130 ; GENERATED FROM 'ACR TRAVEL ORDER DISPLAY' PRINT TEMPLATE (#3853) ; 09/30/09 ; (FILE 9002196, MARGIN=80)
+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 IF $DATA(DXS)<9
MERGE DXS=^DIPT(3853,"DXS")
+3 SET I(0)="^ACRDOC("
SET J(0)=9002196
+4 WRITE ?0
KILL ACRX
KILL DIP
IF DN
KILL Y
+5 WRITE ?11
XECUTE DXS(1,9)
KILL DIP
IF DN
KILL Y
+6 WRITE ?22
XECUTE DXS(2,9)
KILL DIP
IF DN
KILL Y
+7 WRITE ?33
XECUTE DXS(3,9)
KILL DIP
IF DN
KILL Y
+8 WRITE ?44
XECUTE DXS(4,9)
KILL DIP
IF DN
KILL Y
+9 WRITE ?55
XECUTE DXS(5,9)
KILL DIP
IF DN
KILL Y
+10 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[1 ]*ORIG/AMEND:"
+11 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(7,Y)):DXS(7,Y),1:Y)
+12 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[16] OTHER.....:"
+13 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?58
SET Y=$PIECE(X,U,4)
IF Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+14 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[2 ] ORDR AMEND:"
+15 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,20)
SET Y=$SELECT(Y="":Y,$DATA(^ACRDOC(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,17)
+16 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[17] SPECIFY...:"
+17 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?58,$EXTRACT($PIECE(X,U,7),1,15)
+18 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[3 ]*TRAVELER..:"
+19 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,9)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+20 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[18] PCS TRANS.:"
+21 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(9,Y)):DXS(9,Y),1:Y)
+22 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " POSITION..:"
+23 WRITE ?18
IF $DATA(ACREMPDA)
IF ACREMPDA
WRITE $EXTRACT($PIECE($GET(^VA(200,ACREMPDA,20)),U,3),1,20)
KILL DIP
IF DN
KILL Y
+24 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[19] TEMP QTRS.:"
+25 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(10,Y)):DXS(10,Y),1:Y)
+26 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " RANK......:"
+27 WRITE ?18
IF $DATA(ACREMP)
IF ACREMP]""
WRITE $PIECE(ACREMP,U,3)_"-"_$PIECE(ACREMP,U,4)
KILL DIP
IF DN
KILL Y
+28 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[20] RESID TRNS:"
+29 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,3)
IF Y]""
WRITE $SELECT($DATA(DXS(11,Y)):DXS(11,Y),1:Y)
+30 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[4 ]*ORGANIZATN:"
+31 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,12)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,20)
+32 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[21] TEMP STOR.:"
+33 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,4)
IF Y]""
WRITE $SELECT($DATA(DXS(12,Y)):DXS(12,Y),1:Y)
+34 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[5 ]*STATION...:"
+35 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,13)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTLOC(Y,0))#2:$PIECE(^(0),U),1:Y)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(4,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,20)
+36 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[22] HOUSE HUNT:"
+37 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,5)
IF Y]""
WRITE $SELECT($DATA(DXS(13,Y)):DXS(13,Y),1:Y)
+38 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[6 ]*DEPARTURE.:"
+39 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,14)
DO DT
+40 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[23] MISCELANOS:"
+41 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,6)
IF Y]""
WRITE $SELECT($DATA(DXS(14,Y)):DXS(14,Y),1:Y)
+42 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[7 ] RETURN....:"
+43 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,15)
DO DT
+44 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[24] 355 SIGNED:"
+45 SET X=$GET(^ACRDOC(D0,"TOPCS"))
WRITE ?58
SET Y=$PIECE(X,U,7)
IF Y]""
WRITE $SELECT($DATA(DXS(15,Y)):DXS(15,Y),1:Y)
+46 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[8 ] POV.......:"
+47 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(16,Y)):DXS(16,Y),1:Y)
+48 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[25]*TRAVELER..:"
+49 WRITE ?58
IF $DATA(ACRX(18,1))
IF ACRX(18,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+50 SET X=$GET(^ACRDOC(D0,"TO"))
SET Y=$PIECE(X,U,18)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+51 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[9 ] MILE RATE.:"
+52 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,6,3)
+53 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[26]*RECMD'D BY:"
+54 WRITE ?58
IF $DATA(ACRX(16,1))
IF ACRX(16,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+55 SET X=$GET(^ACRDOC(D0,"TO"))
SET Y=$PIECE(X,U,16)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+56 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[10] GSA VEHICL:"
+57 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(17,Y)):DXS(17,Y),1:Y)
+58 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[27] TITLE.....:"
+59 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?58,$EXTRACT($PIECE(X,U,17),1,20)
+60 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[11] AUTO RENT.:"
+61 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,3)
IF Y]""
WRITE $SELECT($DATA(DXS(18,Y)):DXS(18,Y),1:Y)
+62 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[28]*AUTHRZD BY:"
+63 WRITE ?58
IF $DATA(ACRX(2,1))
IF ACRX(2,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+64 SET X=$GET(^ACRDOC(D0,"TOAU"))
SET Y=$PIECE(X,U,2)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+65 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[12] EXC BAGAGE:"
+66 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,5)
IF Y]""
WRITE $SELECT($DATA(DXS(19,Y)):DXS(19,Y),1:Y)
+67 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[29] TITLE.....:"
+68 SET X=$GET(^ACRDOC(D0,"TOAU"))
WRITE ?58,$EXTRACT($PIECE(X,U,1),1,20)
+69 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[13] REGIS FEE.:"
+70 SET X=$GET(^ACRDOC(D0,"TOSA"))
WRITE ?18
SET Y=$PIECE(X,U,6)
IF Y]""
WRITE $SELECT($DATA(DXS(20,Y)):DXS(20,Y),1:Y)
+71 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[30] ATM ATHZD.:"
+72 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?58
SET Y=$PIECE(X,U,22)
IF Y]""
WRITE $SELECT($DATA(DXS(21,Y)):DXS(21,Y),1:Y)
+73 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[14] PD RATE...:"
+74 WRITE ?18
XECUTE DXS(6,9)
KILL DIP
IF DN
KILL Y
WRITE X
+75 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[31]*FUNDS AVAL:"
+76 WRITE ?58
IF $DATA(ACRX(1,1))
IF ACRX(1,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+77 SET X=$GET(^ACRDOC(D0,"FA"))
SET Y=$PIECE(X,U,2)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+78 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[15] TRAVEL ADV:"
+79 SET X=$GET(^ACRDOC(D0,"TO"))
WRITE ?18
SET Y=$PIECE(X,U,19)
IF Y]""
WRITE $SELECT($DATA(DXS(22,Y)):DXS(22,Y),1:Y)
+80 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[32]*IDENTIFIER:"
+81 SET X=$GET(^ACRDOC(D0,0))
WRITE ?58,$EXTRACT($PIECE(X,U,14),1,16)
+82 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[33] COST COMP.:"
+83 SET X=$GET(^ACRDOC(D0,"TOAU"))
WRITE ?58
SET Y=$PIECE(X,U,6)
IF Y]""
WRITE $JUSTIFY(Y,8,2)
+84 KILL Y
+85 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!