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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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