ACRPCAN ; GENERATED FROM 'ACR ARMS CAN' PRINT TEMPLATE (#3951) ; 09/30/09 ; (FILE 9002186.5, 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)
S I(0)="^ACRCAN(",J(0)=9002186.5
D N:$X>0 Q:'DN W ?0 W "DEFAULTS FOR CAN....:"
S X=$G(^ACRCAN(D0,0)) W ?23 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^AUTTCAN(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,7)
D T Q:'DN D N D N:$X>23 Q:'DN W ?23 W "REQUISITION DEFAULTS"
D N:$X>23 Q:'DN W ?23 W "===================="
D N:$X>0 Q:'DN W ?0 W "TO..................:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,17) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "REQUESTING OFFICE...:"
W ?23 S Y=$P(X,U,14) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "LOCATION CODE.......:"
S X=$G(^ACRCAN(D0,0)) W ?23 S Y=$P(X,U,7) S Y=$S(Y="":Y,$D(^AUTTLCOD(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "FOR REFERENCE CALL..:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,18) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TELEPHONE NUMBER....:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23,$E($P(X,U,19),1,12)
D N:$X>0 Q:'DN W ?0 W "DELIVER TO..........:"
W ?23 S Y=$P(X,U,13) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "REQUESTED BY........:"
W ?23 S Y=$P(X,U,15) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "REQUEST RECOMMEND BY:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,25) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "REQUEST APPROVED BY.:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,24) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "FUNDS AVAILABLE SIG.:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,1) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "PROPERTY CLEARANCE..:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,17) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "LOCAL PROP MGT OFF..:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,20) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "SUPPLY OFFICER......:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,20) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "LOCAL INFO SYS COORD:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,11) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "LOCAL TELECOM OFFICR:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,13) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "CONTRACT OFFICER....:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,10) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "LOCAL FIN MGT OFFICR:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,14) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "RECEIVING OFFICIAL..:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,3) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
W ?55 D PAUSE^ACRFWARN K DIP K:DN Y
D T Q:'DN D N D N:$X>23 Q:'DN W ?23 W "PURCHASE ORDER DEFAULTS"
D N:$X>23 Q:'DN W ?23 W "======================="
D N:$X>0 Q:'DN W ?0 W "PURCHASING OFFICE...:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,15) S Y=$S(Y="":Y,$D(^ACRPO(Y,0))#2:$P(^(0),U),1:Y) 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,30)
D N:$X>0 Q:'DN W ?0 W "ISSUING OFFICE......:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,10) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "SHIP TO.............:"
W ?23 S Y=$P(X,U,11) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "MAIL INVOICE TO.....:"
W ?23 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,30)
D N:$X>0 Q:'DN W ?0 W "INSPECTION/ACCPT LOC:"
W ?23 S Y=$P(X,U,16) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "PO AUTHORIZED BY....:"
W ?23 S Y=$P(X,U,2) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "INVOICE AUDITOR.....:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,23) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D T Q:'DN D N D N:$X>23 Q:'DN W ?23 W "TRAVEL ORDER DEFAULTS"
D N:$X>23 Q:'DN W ?23 W "====================="
D N:$X>0 Q:'DN W ?0 W "BUREAU/DIV/REGION...:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,21) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "PRESENT DUTY STATION:"
W ?23 S Y=$P(X,U,22) 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,30)
D N:$X>0 Q:'DN W ?0 W "TRAVEL RECOMMENDD BY:"
W ?23 S Y=$P(X,U,4) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRVL FUNDS AVAIL SIG:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,8) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAVEL AUTHORIZED BY:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,3) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAVEL ORDER AUDITOR:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,24) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAV VOUCHR AUDITOR.:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,22) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAV PAYMENT CERTIF.:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,21) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
W ?55 D PAUSE^ACRFWARN K DIP K:DN Y
D T Q:'DN D N D N:$X>23 Q:'DN W ?23 W "TRAINING REQUEST DEFAULTS"
D N:$X>23 Q:'DN W ?23 W "========================="
D N:$X>0 Q:'DN W ?0 W "INITIATING SUPERVISR:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,5) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "FIRST CONCURRING OFF:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,6) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "SECOND CONCURRNG OFF:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,7) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAINING APPROVED BY:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,8) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "EMP DEVELOPMENT SPED:"
S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,9) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRNG FUNDS AVAIL SIG:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,7) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRAINING AUTHORZD BY:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,4) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "TRNG PROC OFFICIAL..:"
S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,25) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
G ^ACRPCAN1
ACRPCAN ; GENERATED FROM 'ACR ARMS CAN' PRINT TEMPLATE (#3951) ; 09/30/09 ; (FILE 9002186.5, 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 SET I(0)="^ACRCAN("
SET J(0)=9002186.5
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DEFAULTS FOR CAN....:"
+4 SET X=$GET(^ACRCAN(D0,0))
WRITE ?23
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTCAN(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,7)
+5 DO T
IF 'DN
QUIT
DO N
IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "REQUISITION DEFAULTS"
+6 IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "===================="
+7 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TO..................:"
+8 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,17)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+9 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "REQUESTING OFFICE...:"
+10 WRITE ?23
SET Y=$PIECE(X,U,14)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+11 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCATION CODE.......:"
+12 SET X=$GET(^ACRCAN(D0,0))
WRITE ?23
SET Y=$PIECE(X,U,7)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTLCOD(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+13 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "FOR REFERENCE CALL..:"
+14 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,18)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+15 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TELEPHONE NUMBER....:"
+16 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23,$EXTRACT($PIECE(X,U,19),1,12)
+17 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DELIVER TO..........:"
+18 WRITE ?23
SET Y=$PIECE(X,U,13)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+19 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "REQUESTED BY........:"
+20 WRITE ?23
SET Y=$PIECE(X,U,15)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+21 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "REQUEST RECOMMEND BY:"
+22 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,25)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+23 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "REQUEST APPROVED BY.:"
+24 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,24)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+25 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "FUNDS AVAILABLE SIG.:"
+26 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,1)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+27 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PROPERTY CLEARANCE..:"
+28 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,17)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+29 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCAL PROP MGT OFF..:"
+30 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,20)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+31 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SUPPLY OFFICER......:"
+32 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,20)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+33 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCAL INFO SYS COORD:"
+34 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,11)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+35 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCAL TELECOM OFFICR:"
+36 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,13)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+37 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "CONTRACT OFFICER....:"
+38 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,10)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+39 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCAL FIN MGT OFFICR:"
+40 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,14)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+41 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "RECEIVING OFFICIAL..:"
+42 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,3)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+43 WRITE ?55
DO PAUSE^ACRFWARN
KILL DIP
IF DN
KILL Y
+44 DO T
IF 'DN
QUIT
DO N
IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "PURCHASE ORDER DEFAULTS"
+45 IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "======================="
+46 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PURCHASING OFFICE...:"
+47 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,15)
SET Y=$SELECT(Y="":Y,$DATA(^ACRPO(Y,0))#2:$PIECE(^(0),U),1:Y)
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,30)
+48 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "ISSUING OFFICE......:"
+49 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,10)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+50 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SHIP TO.............:"
+51 WRITE ?23
SET Y=$PIECE(X,U,11)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+52 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "MAIL INVOICE TO.....:"
+53 WRITE ?23
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,30)
+54 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "INSPECTION/ACCPT LOC:"
+55 WRITE ?23
SET Y=$PIECE(X,U,16)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+56 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PO AUTHORIZED BY....:"
+57 WRITE ?23
SET Y=$PIECE(X,U,2)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+58 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "INVOICE AUDITOR.....:"
+59 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,23)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+60 DO T
IF 'DN
QUIT
DO N
IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "TRAVEL ORDER DEFAULTS"
+61 IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "====================="
+62 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "BUREAU/DIV/REGION...:"
+63 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,21)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+64 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PRESENT DUTY STATION:"
+65 WRITE ?23
SET Y=$PIECE(X,U,22)
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,30)
+66 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL RECOMMENDD BY:"
+67 WRITE ?23
SET Y=$PIECE(X,U,4)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+68 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRVL FUNDS AVAIL SIG:"
+69 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,8)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+70 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL AUTHORIZED BY:"
+71 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,3)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+72 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL ORDER AUDITOR:"
+73 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,24)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+74 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAV VOUCHR AUDITOR.:"
+75 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,22)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+76 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAV PAYMENT CERTIF.:"
+77 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,21)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+78 WRITE ?55
DO PAUSE^ACRFWARN
KILL DIP
IF DN
KILL Y
+79 DO T
IF 'DN
QUIT
DO N
IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "TRAINING REQUEST DEFAULTS"
+80 IF $X>23
DO N
IF 'DN
QUIT
WRITE ?23
WRITE "========================="
+81 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "INITIATING SUPERVISR:"
+82 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,5)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+83 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "FIRST CONCURRING OFF:"
+84 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,6)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+85 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SECOND CONCURRNG OFF:"
+86 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,7)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+87 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINING APPROVED BY:"
+88 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,8)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+89 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "EMP DEVELOPMENT SPED:"
+90 SET X=$GET(^ACRCAN(D0,"DFLT"))
WRITE ?23
SET Y=$PIECE(X,U,9)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+91 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRNG FUNDS AVAIL SIG:"
+92 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,7)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+93 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINING AUTHORZD BY:"
+94 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,4)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+95 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRNG PROC OFFICIAL..:"
+96 SET X=$GET(^ACRCAN(D0,"DFLT1"))
WRITE ?23
SET Y=$PIECE(X,U,25)
SET Y(0)=Y
SET Y=$$NAME2^ACRFUTL1(Y)
WRITE $EXTRACT(Y,1,30)
+97 GOTO ^ACRPCAN1