data medical; length ID $ 4 LName FName $ 11 Plan $ 2 Blood $ 3 Allergy $ 1 AlgyType $10; /* The length statement allows the user to specify the character of a variable and its size*/ infile 'C:/Garvii/Insurance.dat'; input ID $ LName $ FName $ Plan $ Blood $ Allergy $ @; /*Trailing @ prevents new record from being LOADED*/ if Allergy='N' then input Dependents; else if Allergy='Y' then input AlgyType $ Dependents; run; proc print data=medical; title 'Patients medical information'; run;