ACR148 ; GENERATED FROM 'ACR TRAINING REQUEST DISPLAY' PRINT TEMPLATE (#3852) ; 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(3852,"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
D N:$X>0 Q:'DN W ?0 W "[1 ]*ATTENDEE..:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^ACRAU(Y,0))#2:$P(^(0),U),1:Y) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>40 Q:'DN W ?40 W "[16] PURPOSE...:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?58 S Y=$P(X,U,6) S Y=$S(Y="":Y,$D(^ACRTP(Y,0))#2:$P(^(0),U),1:Y) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "[2 ]*ORGANIZATN:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,3) 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 "[17] TYPE......:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?58 S Y=$P(X,U,7) S Y=$S(Y="":Y,$D(^ACRTT(Y,0))#2:$P(^(0),U),1:Y) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W " SOC SEC...:"
W ?18 W $$PSSN^ACRFUTL($P($G(^ACRDOC(D0,"TRNG")),U,2),$G(DUZ),$G(IOST),$G(ACRSSNOK)) K DIP K:DN Y
D N:$X>40 Q:'DN W ?40 W "[18] SOURCE....:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?58 S Y=$P(X,U,8) S Y=$S(Y="":Y,$D(^ACRTS(Y,0))#2:$P(^(0),U),1:Y) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W " PAY PLAN..:"
W ?18 X DXS(5,9.2) S DIP(101)=X S X=$P(DIP(102),U,3),X=X S X=X S D0=I(0,0) K DIP K:DN Y W X
W "-"
W ?29 X DXS(6,9.2) S X=$P(DIP(101),U,4) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>40 Q:'DN W ?40 W "[19] SPEC INTR.:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?58 S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^ACRTSI(Y,0))#2:$P(^(0),U),1:Y) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W " TYPE APPT.:"
W ?18 X DXS(7,9.3) S X=$P($P(DIP(102),$C(59)_$P(DIP(101),U,7)_":",2),$C(59),1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>40 Q:'DN W ?40 W "[20] SELF SPONS:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?58 S Y=$P(X,U,21) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W " POS. TITLE:"
W ?18,$E($P(X,U,6),1,30)
D N:$X>40 Q:'DN W ?40 W "[21] SKILL CODE:"
W ?58 S Y=$P(X,U,22) S Y=$S(Y="":Y,$D(^ACRTSC(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,4)
D N:$X>0 Q:'DN W ?0 W "[3 ] SERV YEARS:"
W ?18 S Y=$P(X,U,7) W:Y]"" $J(Y,3,0)
D N:$X>40 Q:'DN W ?40 W "[22] SIBAC.....:"
W ?58,$E($P(X,U,24),1,10)
D N:$X>0 Q:'DN W ?0 W "[4 ] SERV MNTHS:"
W ?18 S Y=$P(X,U,8) W:Y]"" $J(Y,3,0)
D N:$X>40 Q:'DN W ?40 W "[23]*SUPERVISOR:"
W ?58 I $D(ACRX(26,1)),ACRX(26,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG")) S Y=$P(X,U,26) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[5 ] HOURS DUTY:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,9) W:Y]"" $J(Y,5,0)
D N:$X>40 Q:'DN W ?40 W "[24]*CONCUR - 1:"
W ?58 I $D(ACRX(3,1)),ACRX(3,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG4")) S Y=$P(X,U,1) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[6 ] NON-DUTY..:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,10) W:Y]"" $J(Y,5,0)
D N:$X>40 Q:'DN W ?40 W "[25]*CONCUR - 2:"
W ?58 I $D(ACRX(4,1)),ACRX(4,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG4")) 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 "[7 ]*TRNG FROM.:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,11) D DT
D N:$X>40 Q:'DN W ?40 W "[26]*APPROVING.:"
W ?58 I $D(ACRX(5,1)),ACRX(5,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG4")) S Y=$P(X,U,3) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[8 ]*TRNG TO...:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18 S Y=$P(X,U,12) D DT
D N:$X>40 Q:'DN W ?40 W "[27]*RVW SPCLST:"
W ?58 I $D(ACRX(6,1)),ACRX(6,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG4")) S Y=$P(X,U,4) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[9 ]*TRNG TITLE:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?18,$E($P(X,U,18),1,20)
D N:$X>40 Q:'DN W ?40 W "[28]*AUTHORIZNG:"
W ?58 I $D(ACRX(2,1)),ACRX(2,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG4")) S Y=$P(X,U,5) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[10] PAYMENT TO:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?18 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^AUTTVNDR(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,20)
D N:$X>40 Q:'DN W ?40 W "[29]*FUNDS AVAL:"
W ?58 I $D(ACRX(1,1)),ACRX(1,1)'="" W "#" K DIP K:DN Y
S X=$G(^ACRDOC(D0,"TRNG")) S Y=$P(X,U,25) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,20)
D N:$X>0 Q:'DN W ?0 W "[11] LOC OF TNG:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?18,$E($P(X,U,6),1,20)
D N:$X>40 Q:'DN W ?40 W "[30]*TRAV ORDER:"
S X=$G(^ACRDOC(D0,"TRNGTO")) W ?58 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ACRDOC(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,17)
D N:$X>0 Q:'DN W ?0 W "[12] LOC ADDRSS:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?18,$E($P(X,U,7),1,20)
D N:$X>40 Q:'DN W ?40 W "[31] PRIOR NON-"
D N:$X>0 Q:'DN W ?0 W "[13] LOC CITY..:"
W ?18,$E($P(X,U,8),1,20)
D N:$X>40 Q:'DN W ?40 W " GOV'T TRNG:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?58 S Y=$P(X,U,10) W:Y]"" $J(Y,5,0)
D N:$X>0 Q:'DN W ?0 W "[14] LOC STATE.:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?18 S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,20)
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>0 Q:'DN W ?0 W "[15] LOC ZIP...:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?18,$E($P(X,U,10),1,10)
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
ACR148 ; GENERATED FROM 'ACR TRAINING REQUEST DISPLAY' PRINT TEMPLATE (#3852) ; 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(3852,"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 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[1 ]*ATTENDEE..:"
+10 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^ACRAU(Y,0))#2:$PIECE(^(0),U),1:Y)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+11 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[16] PURPOSE...:"
+12 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?58
SET Y=$PIECE(X,U,6)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTP(Y,0))#2:$PIECE(^(0),U),1:Y)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+13 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[2 ]*ORGANIZATN:"
+14 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,3)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,20)
+15 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[17] TYPE......:"
+16 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?58
SET Y=$PIECE(X,U,7)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTT(Y,0))#2:$PIECE(^(0),U),1:Y)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+17 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " SOC SEC...:"
+18 WRITE ?18
WRITE $$PSSN^ACRFUTL($PIECE($GET(^ACRDOC(D0,"TRNG")),U,2),$GET(DUZ),$GET(IOST),$GET(ACRSSNOK))
KILL DIP
IF DN
KILL Y
+19 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[18] SOURCE....:"
+20 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?58
SET Y=$PIECE(X,U,8)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTS(Y,0))#2:$PIECE(^(0),U),1:Y)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+21 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " PAY PLAN..:"
+22 WRITE ?18
XECUTE DXS(5,9.2)
SET DIP(101)=X
SET X=$PIECE(DIP(102),U,3)
SET X=X
SET X=X
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+23 WRITE "-"
+24 WRITE ?29
XECUTE DXS(6,9.2)
SET X=$PIECE(DIP(101),U,4)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+25 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[19] SPEC INTR.:"
+26 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?58
SET Y=$PIECE(X,U,9)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTSI(Y,0))#2:$PIECE(^(0),U),1:Y)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+27 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " TYPE APPT.:"
+28 WRITE ?18
XECUTE DXS(7,9.3)
SET X=$PIECE($PIECE(DIP(102),$CHAR(59)_$PIECE(DIP(101),U,7)_":",2),$CHAR(59),1)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+29 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[20] SELF SPONS:"
+30 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?58
SET Y=$PIECE(X,U,21)
IF Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+31 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " POS. TITLE:"
+32 WRITE ?18,$EXTRACT($PIECE(X,U,6),1,30)
+33 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[21] SKILL CODE:"
+34 WRITE ?58
SET Y=$PIECE(X,U,22)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTSC(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,4)
+35 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[3 ] SERV YEARS:"
+36 WRITE ?18
SET Y=$PIECE(X,U,7)
IF Y]""
WRITE $JUSTIFY(Y,3,0)
+37 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[22] SIBAC.....:"
+38 WRITE ?58,$EXTRACT($PIECE(X,U,24),1,10)
+39 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[4 ] SERV MNTHS:"
+40 WRITE ?18
SET Y=$PIECE(X,U,8)
IF Y]""
WRITE $JUSTIFY(Y,3,0)
+41 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[23]*SUPERVISOR:"
+42 WRITE ?58
IF $DATA(ACRX(26,1))
IF ACRX(26,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+43 SET X=$GET(^ACRDOC(D0,"TRNG"))
SET Y=$PIECE(X,U,26)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+44 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[5 ] HOURS DUTY:"
+45 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,9)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+46 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[24]*CONCUR - 1:"
+47 WRITE ?58
IF $DATA(ACRX(3,1))
IF ACRX(3,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+48 SET X=$GET(^ACRDOC(D0,"TRNG4"))
SET Y=$PIECE(X,U,1)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+49 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[6 ] NON-DUTY..:"
+50 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+51 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[25]*CONCUR - 2:"
+52 WRITE ?58
IF $DATA(ACRX(4,1))
IF ACRX(4,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+53 SET X=$GET(^ACRDOC(D0,"TRNG4"))
SET Y=$PIECE(X,U,2)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+54 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[7 ]*TRNG FROM.:"
+55 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,11)
DO DT
+56 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[26]*APPROVING.:"
+57 WRITE ?58
IF $DATA(ACRX(5,1))
IF ACRX(5,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+58 SET X=$GET(^ACRDOC(D0,"TRNG4"))
SET Y=$PIECE(X,U,3)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+59 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[8 ]*TRNG TO...:"
+60 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18
SET Y=$PIECE(X,U,12)
DO DT
+61 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[27]*RVW SPCLST:"
+62 WRITE ?58
IF $DATA(ACRX(6,1))
IF ACRX(6,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+63 SET X=$GET(^ACRDOC(D0,"TRNG4"))
SET Y=$PIECE(X,U,4)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+64 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[9 ]*TRNG TITLE:"
+65 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?18,$EXTRACT($PIECE(X,U,18),1,20)
+66 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[28]*AUTHORIZNG:"
+67 WRITE ?58
IF $DATA(ACRX(2,1))
IF ACRX(2,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+68 SET X=$GET(^ACRDOC(D0,"TRNG4"))
SET Y=$PIECE(X,U,5)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+69 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[10] PAYMENT TO:"
+70 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?18
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTVNDR(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,20)
+71 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[29]*FUNDS AVAL:"
+72 WRITE ?58
IF $DATA(ACRX(1,1))
IF ACRX(1,1)'=""
WRITE "#"
KILL DIP
IF DN
KILL Y
+73 SET X=$GET(^ACRDOC(D0,"TRNG"))
SET Y=$PIECE(X,U,25)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,20)
+74 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[11] LOC OF TNG:"
+75 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?18,$EXTRACT($PIECE(X,U,6),1,20)
+76 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[30]*TRAV ORDER:"
+77 SET X=$GET(^ACRDOC(D0,"TRNGTO"))
WRITE ?58
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ACRDOC(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,17)
+78 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[12] LOC ADDRSS:"
+79 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?18,$EXTRACT($PIECE(X,U,7),1,20)
+80 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[31] PRIOR NON-"
+81 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[13] LOC CITY..:"
+82 WRITE ?18,$EXTRACT($PIECE(X,U,8),1,20)
+83 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE " GOV'T TRNG:"
+84 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?58
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+85 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[14] LOC STATE.:"
+86 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?18
SET Y=$PIECE(X,U,9)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,20)
+87 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "[32]*IDENTIFIER:"
+88 SET X=$GET(^ACRDOC(D0,0))
WRITE ?58,$EXTRACT($PIECE(X,U,14),1,16)
+89 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[15] LOC ZIP...:"
+90 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?18,$EXTRACT($PIECE(X,U,10),1,10)
+91 KILL Y
+92 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!