PRCBTCP ; GENERATED FROM 'PRCB READER DISP' PRINT TEMPLATE (#333) ; 10/27/00 ; (FILE 421.6, 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(333,"DXS")
S I(0)="^PRCF(421.6,",J(0)=421.6
S DIWF="W"
D N:$X>0 Q:'DN W ?0 W "Transfer Transaction Summary"
D N:$X>19 Q:'DN W ?19 W " "
D N:$X>8 Q:'DN W ?8 W "To Control Point: "
S X=$G(^PRCF(421.6,D0,0)) W ?28,$E($P(X,U,3),1,30)
D N:$X>6 Q:'DN W ?6 W "From Control Point: "
W ?28,$E($P(X,U,2),1,30)
D N:$X>8 Q:'DN W ?8 W "Transaction Date: "
W ?28 S Y=$P(X,U,5) D DT
D N:$X>17 Q:'DN W ?17 W "Quarter: "
W ?28 X DXS(1,9.3) S X=$S(DIP(3):DIP(4),DIP(5):DIP(6),DIP(7):DIP(8),DIP(9):X) S Y=X,X=DIP(2),X=X_Y K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "Amount to be Transferred: "
W ?28 X DXS(2,9.2) S X=X_Y K DIP K:DN Y W X
D N:$X>20 Q:'DN W ?20 W "R/NR: "
S X=$G(^PRCF(421.6,D0,2)) W ?28 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
D N:$X>11 Q:'DN W ?11 W "Annualization: "
W ?28 X DXS(3,9.2) S X=X_Y K DIP K:DN Y W X
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "Description: "
S I(1)=1,J(1)=421.65 F D1=0:0 Q:$O(^PRCF(421.6,D0,1,D1))'>0 S D1=$O(^(D1)) D:$X>15 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^PRCF(421.6,D0,1,D1,0)) S DIWL=16,DIWR=78 D ^DIWP
Q
A1R ;
D 0^DIWW K DIP K:DN Y
D ^DIWW K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCBTCP 1901 printed Dec 13, 2024@02:00:55 Page 2
PRCBTCP ; GENERATED FROM 'PRCB READER DISP' PRINT TEMPLATE (#333) ; 10/27/00 ; (FILE 421.6, 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(333,"DXS")
+3 SET I(0)="^PRCF(421.6,"
SET J(0)=421.6
+4 SET DIWF="W"
+5 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Transfer Transaction Summary"
+6 if $X>19
DO N
if 'DN
QUIT
WRITE ?19
WRITE " "
+7 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "To Control Point: "
+8 SET X=$GET(^PRCF(421.6,D0,0))
WRITE ?28,$EXTRACT($PIECE(X,U,3),1,30)
+9 if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "From Control Point: "
+10 WRITE ?28,$EXTRACT($PIECE(X,U,2),1,30)
+11 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "Transaction Date: "
+12 WRITE ?28
SET Y=$PIECE(X,U,5)
DO DT
+13 if $X>17
DO N
if 'DN
QUIT
WRITE ?17
WRITE "Quarter: "
+14 WRITE ?28
XECUTE DXS(1,9.3)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):DIP(6),DIP(7):DIP(8),DIP(9):X)
SET Y=X
SET X=DIP(2)
SET X=X_Y
KILL DIP
if DN
KILL Y
WRITE X
+15 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Amount to be Transferred: "
+16 WRITE ?28
XECUTE DXS(2,9.2)
SET X=X_Y
KILL DIP
if DN
KILL Y
WRITE X
+17 if $X>20
DO N
if 'DN
QUIT
WRITE ?20
WRITE "R/NR: "
+18 SET X=$GET(^PRCF(421.6,D0,2))
WRITE ?28
SET Y=$PIECE(X,U,1)
if Y]""
WRITE $SELECT($DATA(DXS(4,Y)):DXS(4,Y),1:Y)
+19 if $X>11
DO N
if 'DN
QUIT
WRITE ?11
WRITE "Annualization: "
+20 WRITE ?28
XECUTE DXS(3,9.2)
SET X=X_Y
KILL DIP
if DN
KILL Y
WRITE X
+21 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "Description: "
+22 SET I(1)=1
SET J(1)=421.65
FOR D1=0:0
if $ORDER(^PRCF(421.6,D0,1,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>15
DO T
if 'DN
QUIT
DO A1
+23 GOTO A1R
A1 ;
+1 SET X=$GET(^PRCF(421.6,D0,1,D1,0))
SET DIWL=16
SET DIWR=78
DO ^DIWP
+2 QUIT
A1R ;
+1 DO 0^DIWW
KILL DIP
if DN
KILL Y
+2 DO ^DIWW
KILL Y
KILL DIWF
+3 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!