DGSATX1 ; ;12/08/20
;;
1 N X,X1,X2 S DIXR=837 D X1(U) K X2 M X2=X D X1("F") K X1 M X1=X
D
. D NOTIFY^DGSCHAD(.X1,.X2,.DA,"KILL")
K X M X=X2 D
. D NOTIFY^DGSCHAD(.X1,.X2,.DA,"SET")
Q
X1(DION) K X
S X(1)=$G(@DIEZTMP@("V",41.1,DIIENS,.01,DION),$P($G(^DGS(41.1,DA,0)),U,1))
S X(2)=$G(@DIEZTMP@("V",41.1,DIIENS,2,DION),$P($G(^DGS(41.1,DA,0)),U,2))
S X(3)=$G(@DIEZTMP@("V",41.1,DIIENS,3,DION),$P($G(^DGS(41.1,DA,0)),U,3))
S X(4)=$G(@DIEZTMP@("V",41.1,DIIENS,4,DION),$P($G(^DGS(41.1,DA,0)),U,4))
S X(5)=$G(@DIEZTMP@("V",41.1,DIIENS,5,DION),$P($G(^DGS(41.1,DA,0)),U,5))
S X(6)=$G(@DIEZTMP@("V",41.1,DIIENS,6,DION),$P($G(^DGS(41.1,DA,0)),U,6))
S X(7)=$G(@DIEZTMP@("V",41.1,DIIENS,7,DION),$P($G(^DGS(41.1,DA,0)),U,7))
S X(8)=$G(@DIEZTMP@("V",41.1,DIIENS,8,DION),$P($G(^DGS(41.1,DA,0)),U,8))
S X(9)=$G(@DIEZTMP@("V",41.1,DIIENS,9,DION),$P($G(^DGS(41.1,DA,0)),U,9))
S X(10)=$G(@DIEZTMP@("V",41.1,DIIENS,10,DION),$P($G(^DGS(41.1,DA,0)),U,10))
S X(11)=$G(@DIEZTMP@("V",41.1,DIIENS,11,DION),$P($G(^DGS(41.1,DA,0)),U,11))
S X(12)=$G(@DIEZTMP@("V",41.1,DIIENS,12,DION),$P($G(^DGS(41.1,DA,0)),U,12))
S X(13)=$G(@DIEZTMP@("V",41.1,DIIENS,13,DION),$P($G(^DGS(41.1,DA,0)),U,13))
S X(14)=$G(@DIEZTMP@("V",41.1,DIIENS,14,DION),$P($G(^DGS(41.1,DA,0)),U,14))
S X(15)=$G(@DIEZTMP@("V",41.1,DIIENS,15,DION),$P($G(^DGS(41.1,DA,0)),U,15))
S X(16)=$G(@DIEZTMP@("V",41.1,DIIENS,16,DION),$P($G(^DGS(41.1,DA,0)),U,16))
S X(17)=$G(@DIEZTMP@("V",41.1,DIIENS,17,DION),$P($G(^DGS(41.1,DA,0)),U,17))
S X=$G(X(1))
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGSATX1 1530 printed Dec 13, 2024@02:58:45 Page 2
DGSATX1 ; ;12/08/20
+1 ;;
1 NEW X,X1,X2
SET DIXR=837
DO X1(U)
KILL X2
MERGE X2=X
DO X1("F")
KILL X1
MERGE X1=X
+1 Begin DoDot:1
+2 DO NOTIFY^DGSCHAD(.X1,.X2,.DA,"KILL")
End DoDot:1
+3 KILL X
MERGE X=X2
Begin DoDot:1
+4 DO NOTIFY^DGSCHAD(.X1,.X2,.DA,"SET")
End DoDot:1
+5 QUIT
X1(DION) KILL X
+1 SET X(1)=$GET(@DIEZTMP@("V",41.1,DIIENS,.01,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,1))
+2 SET X(2)=$GET(@DIEZTMP@("V",41.1,DIIENS,2,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,2))
+3 SET X(3)=$GET(@DIEZTMP@("V",41.1,DIIENS,3,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,3))
+4 SET X(4)=$GET(@DIEZTMP@("V",41.1,DIIENS,4,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,4))
+5 SET X(5)=$GET(@DIEZTMP@("V",41.1,DIIENS,5,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,5))
+6 SET X(6)=$GET(@DIEZTMP@("V",41.1,DIIENS,6,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,6))
+7 SET X(7)=$GET(@DIEZTMP@("V",41.1,DIIENS,7,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,7))
+8 SET X(8)=$GET(@DIEZTMP@("V",41.1,DIIENS,8,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,8))
+9 SET X(9)=$GET(@DIEZTMP@("V",41.1,DIIENS,9,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,9))
+10 SET X(10)=$GET(@DIEZTMP@("V",41.1,DIIENS,10,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,10))
+11 SET X(11)=$GET(@DIEZTMP@("V",41.1,DIIENS,11,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,11))
+12 SET X(12)=$GET(@DIEZTMP@("V",41.1,DIIENS,12,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,12))
+13 SET X(13)=$GET(@DIEZTMP@("V",41.1,DIIENS,13,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,13))
+14 SET X(14)=$GET(@DIEZTMP@("V",41.1,DIIENS,14,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,14))
+15 SET X(15)=$GET(@DIEZTMP@("V",41.1,DIIENS,15,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,15))
+16 SET X(16)=$GET(@DIEZTMP@("V",41.1,DIIENS,16,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,16))
+17 SET X(17)=$GET(@DIEZTMP@("V",41.1,DIIENS,17,DION),$PIECE($GET(^DGS(41.1,DA,0)),U,17))
+18 SET X=$GET(X(1))
+19 QUIT