Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: EASGTLKP

EASGTLKP.m

Go to the documentation of this file.
  1. EASGTLKP ;ALB/CKN - GMT THRESHOLD LOOKUP ; 10/11/02 1:23pm
  1. ;;1.0;ENROLLMENT APPLICATION SYSTEM;**13**;MAR 15,2001
  1. Q
  1. EP ;
  1. N STR,ZIP,COUNTY,STATE,DONE,TXT1,THRSHLD
  1. S DONE=0,$P(STR,"=",79)="="
  1. S TXT1="GMT Threshold Lookup by Zip Code or City"
  1. W !,TXT1,!,$E(STR,1,$L(TXT1))
  1. F D Q:DONE
  1. . D ASKZIP Q:DONE
  1. . D PROC
  1. Q
  1. ASKZIP ;Prompt user for valid Postal code
  1. N Y,TXT
  1. S DIR(0)="P^5.12:QEM",DIR("A")="ZIP Code"
  1. S TXT="Zip Code is invalid; there is no GMT Threshold associated with this value."
  1. S DIR("PRE")="I $$CHK^EASGTLKP(X) W !!,TXT,!"
  1. S DIR("?")="Enter the ZIP code [5 - 12 characters] that you wish to select."
  1. D ^DIR K DIR
  1. I $D(DIRUT) S DONE=1 Q
  1. I $D(DUOUT) S DONE=1 Q
  1. S ZIP=$P(Y,"^",2)
  1. Q
  1. ;
  1. CHK(X) ;
  1. I +X=0 Q 0
  1. I X'="",X'="^",'$D(^XIP(5.12,"B",X)),'$D(^XIP(5.12,"C",X)) Q 1
  1. Q 0
  1. ;
  1. PROC ;Lookup in GMT threshold file 712.5 for appropriate GMT Thresholds
  1. N FIPS,DATA,YR,XIP,REC513,REC7125
  1. S DATA=$$FIPS^EASAILK(ZIP) ;get FIPS code for entered ZIP code
  1. I '+DATA W !,"GMT Thresholds not found for entered ZIP code." Q
  1. S YR=($E($$NOW^XLFDT(),1,3)-1)_"0000"
  1. S REC7125=$P($G(DATA),"^",3),FIPS=$P($G(DATA),"^")
  1. I '+REC7125 W !,"GMT Threshold is not available for entered ZIP code." Q
  1. S STATE=$P($G(^EAS(712.5,REC7125,0)),"^",3)
  1. I STATE'="" S STATE=$P($G(^DIC(5,STATE,0)),"^")
  1. S COUNTY=$P($G(^EAS(712.5,REC7125,0)),"^",4)
  1. D PRINT
  1. Q
  1. PRINT ;Display GMT thresholds
  1. N J,K,TEXT
  1. W !!,"County Name: ",COUNTY
  1. I STATE'="" W !,"State: ",STATE,!,STR
  1. W !,"Year",?10,"ZIP Code",?27,"FIPS Code",?40,"# in Household",?60,"GMT Threshold"
  1. W !,STR
  1. F J=1:1:8 D
  1. . S THRSHLD=$P($G(^EAS(712.5,REC7125,1)),"^",J) W !
  1. . I J=1 W $$FMTE^XLFDT(YR),?12,ZIP,?29,FIPS
  1. . W ?46,(J),?63,"$"_$FN(THRSHLD,",")
  1. W !,STR
  1. S DIR(0)="E" D ^DIR K DIR
  1. W @IOF
  1. F K=1:1 S TEXT=$P($T(NOTE+K),";;",2) Q:TEXT="EXIT" W !,TEXT
  1. Q
  1. NOTE ;;
  1. ;;
  1. ;;**NOTE**
  1. ;;
  1. ;;Family Size Adjustments
  1. ;;The statutory guidance governing income limits requires that income limits are
  1. ;;to be higher for larger families and lower for smaller families. The same family
  1. ;;size adjustments are used for all income limits. They are as follows:
  1. ;;
  1. ;;Number of Persons in Family and Percentage Adjustments
  1. ;; 1 2 3 4 5 6 7 8
  1. ;;70% 80% 90% Base 108% 116% 124% 132%
  1. ;;
  1. ;;Income limits for families with more than eight persons are not included in the
  1. ;;printed lists because of space limitations. For each person in excess of eight,
  1. ;;8% of the four-person base should be added to the eight-person income limit.
  1. ;;(For example, the nine-person limit equals 140 percent[132+8] of the relevant
  1. ;;base income limit.) Income limits are rounded to the nearest $50.
  1. ;;(Source of information - HUD)
  1. ;;
  1. ;;EXIT