I cannot import dta file into SAS. I know that my variable name is probably too long, but I do not know how to fix it. How short should it be? Btw, is my code correct to import dta file into SAS?
Here is my code:
proc import datafile='F:\Dropbox\Dataset\BoardEx\data\NorthAmerica_full\Announcements\BoardandDirectorAnnouncements\raw\BoardandDirectorAnnouncements_199901to202011\announcement_short.dta'
out=cards
dbms=dta
replace;
Here is the log:
1 proc import
1 ! datafile='F:\Dropbox\Dataset\BoardEx\data\NorthAmerica_full\Announcements\BoardandDirecto
1 ! rAnnouncements\raw\BoardandDirectorAnnouncements_199901to202011\announcement_short.dta'
2 out=cards
3 dbms=dta
4 replace;
Didn't see end for |varnames| element. Got -> ||
Requested Input File Is Invalid
ERROR: Import unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 13.71 seconds
cpu time 0.81 seconds
5 proc import
5 ! datafile='F:\Dropbox\Dataset\BoardEx\data\NorthAmerica_full\Announcements\BoardandDirecto
5 ! rAnnouncements\raw\BoardandDirectorAnnouncements_199901to202011\announcement_short.dta'
6 out=cards
7 dbms=dta
8 replace;
Kindly help me. I just started using SAS for 2 weeks. Very new to this, and my data has 113mb, very large. Thank you.