my code:
data bvd.ac
infile '/data/bvd/ac/financials_and_ratios.txt' dlm='09'x missover dsd lrecl=32767 firstobs=2 truncover;
input
ID $12.
Code $2.
Filing_type $21.
Closing_date :yymmdd10.
Number_of_months $2.
Audit_status $1.
.
.
.
run;
my error:
data bvd.ac
infile '/data/bvd/AcademicsSample/Industry-Global_financials_and_ratios.txt' dlm='09'x missover dsd lrecl=32767 firstobs=2 truncover;
_ _
22 22
200 200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.
ERROR 200-322: The symbol is not recognized and will be ignored.
what am I doing wrong?
The DATA statement misses the terminating semicolon, so the INFILE statement appears to the compiler as part of the DATA statement.
The DATA statement misses the terminating semicolon, so the INFILE statement appears to the compiler as part of the DATA statement.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.