*EZincinc1st02.sps 12-29-2003 *Calculates the number needed for the first footnotes on the last page of the data profile. *This is the children who were in care on the first day but are counted as entries instead because they exited and re-entered. *To use this syntax, change EZ to your State's abbreviation. Change the path name if necessary to match the one you are using. get file='c:\cfsr\EZdata\EZentry02c.sav'. if ((totalrem=2) and ((yrmoda(rem1yr,rem1mo,rem1da)<= yrmoda(2001,09,30)) and (yrmoda(dlstfcyr,dlstfcmo,dlstfcda)>=yrmoda(2001,10,01))))inc=1. FILTER OFF. USE ALL. SELECT IF((YRMODA(latremyr,latremmo,latremda) <= yrmoda(2001,09,30)) or (inc=1)). EXECUTE . FILTER OFF. USE ALL. SELECT IF((inc=1) | ((YRMODA(dodfcyr,dodfcmo,dodfcda) >= yrmoda(2001,10,01)) | (MISSING(dodfcyr) & MISSING(dodfcmo) & MISSING(dodfcda)))). execute. FREQUENCIES VARIABLES=inc /ORDER ANALYSIS .