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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.