/* Published: 03/01/2021 */ /*************** IMPORTANT PROGRAMING NOTES ************************/ /* If you are using PC SAS to read in these files you will have to */ /* un-zip the files first and use the un-zipped filename statement, */ /* rather than using the zipped files and statement. */ /***********************************************************************/ *filename enrollin '/directory/medicaid.enrollment.txt'; /* reading in an un-zipped file */ filename enrollin pipe 'gunzip -c /directory/medicaid.enrollment.txt.gz'; /* reading in a zipped file */ options nocenter validvarname=upcase; data enrollin; infile enrollin lrecl=38 missover pad; input @001 patient_id $char15. /* Patient ID (for either Cancer or Non-Cancer Patients) */ @016 state_cd $char2. @018 year $char4. /* YYYY */ @022 dob_match_score_hi $char1. @023 sex_match_score_hi $char1. @024 id_match_score_hi $char1. @025 match_score_hi $char2. @027 (medicaid_elig_cd1-medicaid_elig_cd12) ($char1.) ; label PATIENT_ID = "Patient ID" STATE_CD = "Medicaid state code" YEAR = "Medicaid enrollment year" DOB_MATCH_SCORE_HI = "DOB match score" SEX_MATCH_SCORE_HI = "Gender match score" ID_MATCH_SCORE_HI = "ID match score" MATCH_SCORE_HI = "Match score" MEDICAID_ELIG_CD1 = "Medicaid Eligibility code 1 (January)" MEDICAID_ELIG_CD2 = "Medicaid Eligibility code 2 (February)" MEDICAID_ELIG_CD3 = "Medicaid Eligibility code 3 (March)" MEDICAID_ELIG_CD4 = "Medicaid Eligibility code 4 (April)" MEDICAID_ELIG_CD5 = "Medicaid Eligibility code 5 (May)" MEDICAID_ELIG_CD6 = "Medicaid Eligibility code 6 (June)" MEDICAID_ELIG_CD7 = "Medicaid Eligibility code 7 (July)" MEDICAID_ELIG_CD8 = "Medicaid Eligibility code 8 (August)" MEDICAID_ELIG_CD9 = "Medicaid Eligibility code 9 (September)" MEDICAID_ELIG_CD10 = "Medicaid Eligibility code 10 (October)" MEDICAID_ELIG_CD11 = "Medicaid Eligibility code 11 (November)" MEDICAID_ELIG_CD12 = "Medicaid Eligibility code 12 (December)" ; run; proc contents data=enrollin position; run;