DGX52 ; ;01/03/22
S X=DE(73),DIC=DIE
K ^DGPT(DA(1),"M","AC",$E(X,1,30),DA)
S X=DE(73),DIC=DIE
K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGPT(D0,"M",D1,82)):^(82),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" S DIH=$G(^DGPT(DIV(0),"M",DIV(1),82)),DIV=X S $P(^(82),U,6)=DIV,DIH=45.02,DIG=82.06 D ^DICR
S X=DE(73),DIC=DIE
X "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)"
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGX52 474 printed Dec 13, 2024@02:59:27 Page 2
DGX52 ; ;01/03/22
+1 SET X=DE(73)
SET DIC=DIE
+2 KILL ^DGPT(DA(1),"M","AC",$EXTRACT(X,1,30),DA)
+3 SET X=DE(73)
SET DIC=DIE
+4 KILL DIV
SET DIV=X
SET D0=DA(1)
SET DIV(0)=D0
SET D1=DA
SET DIV(1)=D1
SET Y(1)=$SELECT($DATA(^DGPT(D0,"M",D1,82)):^(82),1:"")
SET X=$PIECE(Y(1),U,6)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DGPT(DIV(0),"M",DIV(1),82))
SET DIV=X
SET $PIECE(^(82),U,6)=DIV
SET DIH=45.02
SET DIG=82.06
DO ^DICR
+5 SET X=DE(73)
SET DIC=DIE
+6 XECUTE "N X S X=""DGRUDD01"" X ^%ZOSF(""TEST"") Q:'$T N DG1 S DG1=+$P(^DGPT(DA(1),0),""^"",1) D:(DG1>0) ADGRU^DGRUDD01(DG1)"