DATA Step, Macro, Functions and more

Error while importing CSV to work library

Reply
Occasional Contributor
Posts: 7

Error while importing CSV to work library

I am trying to import a csv file for a college project. The file is around 1.8 GB and i want it to be in the SAS work library. 

It gives me the following error 

ERROR: Out of space writing to file /tmp/SAS_work72DD00005218_localhost.localdomain/#LN00015.

is there any work around. I can't subset my data also as i am not able to open in it excel because of the size also.

Any help appreciated.

Respected Advisor
Posts: 4,932

Re: Error while importing CSV to work library

Try compressing the dataset. SAS offers different kinds of compression (see dataset option COMPRESS=).

 

http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0y0x1j67vtqhnn1on1c...

PG
Super User
Posts: 10,044

Re: Error while importing CSV to work library

Are you using UE ?

You can switch WORK into another path:


options user='/folders/myfolders/';
proc import ..........

Occasional Contributor
Posts: 7

Re: Error while importing CSV to work library

I am on university edition.
even if i switch if to the a permanent library..

It gives me the same error.

instead of work.import..

its sashelp.import.. but still the same.
Super User
Posts: 11,343

Re: Error while importing CSV to work library

BAD idea to get into the habit of writing anything into SASHELP library and SASUSER isn't a great place for data either.

 

If this is at school and using a school computer then your use account may well be limited as to available space. If this sound possible talk to your IT folks.

 

 

 

 

 

 

Occasional Contributor
Posts: 7

Re: Error while importing CSV to work library

I am using my laptop... its not a university account..
just the university edition on my laptop..

Code - PROC IMPORT DATAFILE=REFFILE
DBMS=CSV
OUT=WORK.IMPORT2;
GETNAMES=YES;
RUN;

PROC CONTENTS DATA=WORK.IMPORT2; RUN;

Error -
No space left on device

Any suggestions
Respected Advisor
Posts: 4,932

Re: Error while importing CSV to work library

Try 

 

OUT=WORK.IMPORT2(COMPRESS=YES)

PG
Super User
Posts: 11,343

Re: Error while importing CSV to work library

How much free space do you have on the drive?

Note that some of the operations with SAS require more disk space than just the size of the data set to work with.

Ask a Question
Discussion stats
  • 7 replies
  • 367 views
  • 2 likes
  • 4 in conversation