In your code you are reading 3 lines of data not 2. The second "/" is unnecessary. The second line holds Job Title, HireDate and Salary. You may prefer to use input #1 for line1 and #2 for line 2. eg. data sales_staff2; infile "&path/sales2.dat"; input #1 Employee_ID 6. @21 Last_Name $ 18. #2 Job_Title $ 20. @22 Hire_Date mmddyy10. @ 33 Salary dollar8. ; run;
... View more