DGRPTX33 ; ;10/30/24
S X=DE(39),DIC=DIE
X ^DD(2,.36235,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X="" S DIH=$G(^DPT(DIV(0),.362)),DIV=X S $P(^(.362),U,4)=DIV,DIH=2,DIG=.3624 D ^DICR
S X=DE(39),DIC=DIE
S DFN=DA D EN^DGMTCOR K DGMTCOR
S X=DE(39),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X='$$TOTCHK^DGLOCK2(DA) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,20),X=X S DIU=X K Y S X="" X ^DD(2,.36235,1,3,2.4)
S X=DE(39),DIC=DIE
D AUTOUPD^DGENA2(DA)
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGRPTX33 549 printed Dec 13, 2024@02:56:56 Page 2
DGRPTX33 ; ;10/30/24
+1 SET X=DE(39)
SET DIC=DIE
+2 XECUTE ^DD(2,.36235,1,1,2.3)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.362)):^(.362),1:"")
SET X=$PIECE(Y(1),U,4)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$GET(^DPT(DIV(0),.362))
SET DIV=X
SET $PIECE(^(.362),U,4)=DIV
SET DIH=2
SET DIG=.3624
DO ^DICR
+3 SET X=DE(39)
SET DIC=DIE
+4 SET DFN=DA
DO EN^DGMTCOR
KILL DGMTCOR
+5 SET X=DE(39)
SET DIC=DIE
+6 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(0)=X
SET X='$$TOTCHK^DGLOCK2(DA)
IF X
SET X=DIV
SET Y(1)=$SELECT($DATA(^DPT(D0,.362)):^(.362),1:"")
SET X=$PIECE(Y(1),U,20)
SET X=X
SET DIU=X
KILL Y
SET X=""
XECUTE ^DD(2,.36235,1,3,2.4)
+7 SET X=DE(39)
SET DIC=DIE
+8 DO AUTOUPD^DGENA2(DA)