First of all, you have to fix this. Once you fix that, there may (or may not) be additional errors that need to be fixed.
3093 data class ;
3094 infile csv dsd firstobs=2 truncover ;
3095 input name :$8. age sex $ height weight ;
3096 run;
NOTE: The infile CSV is:
Filename=...\#LN00106,
RECFM=V,LRECL=32767,File Size (bytes)=92,
Last Modified=31Mar2023:14:32:03,
Create Time=31Mar2023:14:32:03
NOTE: Invalid data for age in line 2 8-8.
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
2 Alfred,M,14,69,112.5 20
name=Alfred age=. sex=14 height=69 weight=112.5 _ERROR_=1 _N_=1
Your input statement has AGE as the second variable that it is supposed to read, and sex as the third variable that it is supposed to read. But in row 2, the first variable is the name Alfred which is read properly, but then instead of age as the second variable and sex as the third variable, the input line for Alfred has sex as the second variable and age as the third variable.
... View more