DGX56 ; ;01/03/22
S X=DG(DQ),DIC=DIE
S ^DGPT(DA(1),"M","AC",$E(X,1,30),DA)=""
S X=DG(DQ),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,19),X=X S DIU=X K Y S X="" X ^DD(45.02,81.09,1,2,1.4)
S X=DG(DQ),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[HDGX56 413 printed Oct 16, 2024@19:00:03 Page 2
DGX56 ; ;01/03/22
+1 SET X=DG(DQ)
SET DIC=DIE
+2 SET ^DGPT(DA(1),"M","AC",$EXTRACT(X,1,30),DA)=""
+3 SET X=DG(DQ)
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,19)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(45.02,81.09,1,2,1.4)
+5 SET X=DG(DQ)
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)"