DGPMX24 ; ;10/15/12
S X=DG(DQ),DIC=DIE
S DGPMDDF=6,DGPMDDT=1 D ^DGPMDDCN
S X=DG(DQ),DIC=DIE
K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGPM(D0,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X="" S DIH=$S($D(^DGPM(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,7)=DIV,DIH=405,DIG=.07 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
S X=DG(DQ),DIC=DIE
S Y=^DGPM(DA,0) I +Y,Y<DT S Y=$P(Y,U,2) I Y<3,$D(DGOWD) S DGHNYT=$S(Y=1:10,1:12) D ^DGPMGLC K DGIDX
DGPMX24 ; ;10/15/12
+1 SET X=DG(DQ)
SET DIC=DIE
+2 SET DGPMDDF=6
SET DGPMDDT=1
DO ^DGPMDDCN
+3 SET X=DG(DQ)
SET DIC=DIE
+4 KILL DIV
SET DIV=X
SET D0=DA
SET DIV(0)=D0
SET Y(1)=$SELECT($DATA(^DGPM(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,7)
SET X=X
SET DIU=X
KILL Y
SET X=""
SET DIH=$SELECT($DATA(^DGPM(DIV(0),0)):^(0),1:"")
SET DIV=X
SET $PIECE(^(0),U,7)=DIV
SET DIH=405
SET DIG=.07