why is the output so wield:
employee_name idnum age
ruth 22 .
sue . 40
why is the idnum of ruth not equal to 11?
why is the age of sue not equal to 30?
program is below:
data one;
infile 'C:\Users\jfang2\base sas\employee.txt';
input employee_name $ 1-4;
if employee_name='ruth' then input idnum 10-11;
else input age 7-8;
run;
raw data of employee.txt
ruth 39 11
jose 32 22
sue 30 33
john 40 44