DG53429P ;ALB/AEG -2002 MEANS TEST THRESHOLDS ;12/3/01
;;5.3;Registration;**429**;Aug 13, 1993
;
; This routine will upload the 2002 means test thresholds onto your
; system.
;
EN ; enter values distributed by Roscoe Butler in VHA DIRECTIVE 2001-075,
; NEW MEANS TEST THRESHOLDS - 2002.
;
N DA,DIE,DIC,DINUM,DR,I,X,Y,EXST
S EXST=0
D BMES^XPDUTL(">>>Means Test Thresholds for 2002 being installed...")
I $D(^DG(43,1,"MT",3020000)) D
.D BMES^XPDUTL(" ...Entry exists for income year 2001, entry being deleted")
.D MES^XPDUTL(" and replaced with nationally released thresholds.")
.S DIK="^DG(43,1,""MT"",",DA=3020000,DA(1)=1
.D ^DIK,IX1^DIK
.K DA,D0,DIK
K DO
S DIC="^DG(43,1,""MT"","
S DIC(0)="L"
S DA(1)=1
S (DINUM,X)=3020000
D FILE^DICN
S DA=+Y
;
I +Y'=3020000 D Q
. D BMES^XPDUTL(" ...Problem encountered adding 2002 thresholds. Please try")
. D MES^XPDUTL(" again or contact the CIO Field Office for assistance.")
;
D MES^XPDUTL("")
S DIE=DIC,DR=""
F I=1:1 S X=$P($T(DATA+I),";;",2) Q:X="QUIT" D ; build dr string
. S DR=DR_+X_"////"_$P(X,"^",2)_";"
. D MES^XPDUTL(" "_$P(X,"^",3)_" set to $"_$FN($P(X,"^",2),","))
D ^DIE
Q
;
;
DATA ; lines to stuff in values (field////value)
;;2^24304^CAT A VET INCOME
;;3^4864^CAT A FIRST DEPENDENT INCOME
;;4^1630^CAT A INCOME PER DEPENDENT
;;8^80000^THRESHOLD PROPERTY
;;17^7450^CHILD INCOME EXCLUSION
;;QUIT
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDG53429P 1472 printed Dec 13, 2024@02:37:26 Page 2
DG53429P ;ALB/AEG -2002 MEANS TEST THRESHOLDS ;12/3/01
+1 ;;5.3;Registration;**429**;Aug 13, 1993
+2 ;
+3 ; This routine will upload the 2002 means test thresholds onto your
+4 ; system.
+5 ;
EN ; enter values distributed by Roscoe Butler in VHA DIRECTIVE 2001-075,
+1 ; NEW MEANS TEST THRESHOLDS - 2002.
+2 ;
+3 NEW DA,DIE,DIC,DINUM,DR,I,X,Y,EXST
+4 SET EXST=0
+5 DO BMES^XPDUTL(">>>Means Test Thresholds for 2002 being installed...")
+6 IF $DATA(^DG(43,1,"MT",3020000))
Begin DoDot:1
+7 DO BMES^XPDUTL(" ...Entry exists for income year 2001, entry being deleted")
+8 DO MES^XPDUTL(" and replaced with nationally released thresholds.")
+9 SET DIK="^DG(43,1,""MT"","
SET DA=3020000
SET DA(1)=1
+10 DO ^DIK
DO IX1^DIK
+11 KILL DA,D0,DIK
End DoDot:1
+12 KILL DO
+13 SET DIC="^DG(43,1,""MT"","
+14 SET DIC(0)="L"
+15 SET DA(1)=1
+16 SET (DINUM,X)=3020000
+17 DO FILE^DICN
+18 SET DA=+Y
+19 ;
+20 IF +Y'=3020000
Begin DoDot:1
+21 DO BMES^XPDUTL(" ...Problem encountered adding 2002 thresholds. Please try")
+22 DO MES^XPDUTL(" again or contact the CIO Field Office for assistance.")
End DoDot:1
QUIT
+23 ;
+24 DO MES^XPDUTL("")
+25 SET DIE=DIC
SET DR=""
+26 ; build dr string
FOR I=1:1
SET X=$PIECE($TEXT(DATA+I),";;",2)
if X="QUIT"
QUIT
Begin DoDot:1
+27 SET DR=DR_+X_"////"_$PIECE(X,"^",2)_";"
+28 DO MES^XPDUTL(" "_$PIECE(X,"^",3)_" set to $"_$FNUMBER($PIECE(X,"^",2),","))
End DoDot:1
+29 DO ^DIE
+30 QUIT
+31 ;
+32 ;
DATA ; lines to stuff in values (field////value)
+1 ;;2^24304^CAT A VET INCOME
+2 ;;3^4864^CAT A FIRST DEPENDENT INCOME
+3 ;;4^1630^CAT A INCOME PER DEPENDENT
+4 ;;8^80000^THRESHOLD PROPERTY
+5 ;;17^7450^CHILD INCOME EXCLUSION
+6 ;;QUIT
+7 QUIT