DGX5FD4 ; ;01/03/22
S X=DE(61),DIC=DIE
K ^DGPT(DA(1),"M","AC",$E(X,1,30),DA)
S X=DE(61),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,12),X=X S DIU=X K Y S X="" X ^DD(45.02,81.02,1,2,2.4)
S X=DE(61),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[HDGX5FD4 412 printed Dec 13, 2024@02:59:44 Page 2
DGX5FD4 ; ;01/03/22
+1 SET X=DE(61)
SET DIC=DIE
+2 KILL ^DGPT(DA(1),"M","AC",$EXTRACT(X,1,30),DA)
+3 SET X=DE(61)
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,12)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(45.02,81.02,1,2,2.4)
+5 SET X=DE(61)
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)"