Hello,
I am having trouble importing a very large TSV file into sas (>1million KB). Does anyone know how to import a file of this size?
Thank you.
Importing tab-delimited files with a data step is rather simple. What is your problem?
In case of ERRORs, please post the log, using the {i} button.
I dont know if the file is too big or what, but for some reason when i upload the dataset into sas a lot of the columns are concatenated and condensed. here is my code:
proc import datafile="X:\Temp\ABC\ARCOS\arcos-oh-statewide-itemized.tsv" out=work.Oh dbms=tsv replace;
Try DBMS=TAB instead of DBMS=TSV.
also you might want to add the statement:
Guessingrows=32000;
So more rows of data are examined before the variable types, lengths and informats are set by the procedure.
Don't use import. Write a data step according to the documentation you got with the file. You can use the code created by proc import as a starting point.
@marleeakerson wrote:
a lot of the columns are concatenated and condensed.
Make sure the columns are effectively separated by tabs.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.