BookmarkSubscribeRSS Feed
2015eva
Calcite | Level 5

Where is the imported data (a .csv file) stored in EG?

In a file system or in a database? Will it take c:\SASHome space?

I installed a SAS analytics pro on my notebook.

5 REPLIES 5
Tom
Super User Tom
Super User

If you are using Enterprise Guide task to import a file that currently lives on the machine where you are running EG then I believe it will upload the CSV file (or perhaps a modified version of it) to the WORK directory of the SAS session you are connected to.  So that CSV file will disappear when the session is over and so not take any space at all.

 

Now the dataset that the import generated will be where ever you told Enterprise Guide and/or SAS itself to put it.  Normal SAS datasets are files on the disk.  So if you wrote a permanent file using a normal SAS libref that is pointing to a directory then the file is in the directory.  If you used a SAS libref that is pointing to some external database system (like Oracle) then the data is stored in a table in that database system and not as a physical SAS dataset.

Sajid01
Meteorite | Level 14

Hello @2015eva 
In a typical scenario when a csv file is imported and a dataset created, it is stored in the Work library which is a location on the filesystem. Have a look at the SAS EG log after the import. You will have an idea about it.
In case you desire to find the location of the work library  (or for that matter any library -simply replace WORK with the library name) the following statement will output the location to the log.

%put %sysfunc(getoption(WORK));

 

 

Tom
Super User Tom
Super User

Wrong function.  That returns the value of a system option.  To get the location of a library use the PATHNAME() function.

For WORK they should both have the same value.  But most libref name values are not also system option names, and if they are they could have completely different meanings and values.

Patrick
Opal | Level 21

@Tom wrote:

Wrong function.  That returns the value of a system option.  To get the location of a library use the PATHNAME() function.

For WORK they should both have the same value.  But most libref name values are not also system option names, and if they are they could have completely different meanings and values.


@Tom 

I agree with you that using pathname() is preferable.

Chris Hemedinger tends to use %sysfunc(getoption(WORK)) in code shared in his blogs - which makes this a "widespread" coding option.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1063 views
  • 1 like
  • 5 in conversation