BookmarkSubscribeRSS Feed
spg
Obsidian | Level 7 spg
Obsidian | Level 7

Hi there,

I'm new to SAS EG and am having trouble working with it. I cannot create SAS datasets from EG as SAS is not installed locally.

When I import a CSV file into EG and try to filter on the variables, it gives me an ERROR saying that the file WORK.XXX does not exist. What do I have to do to be able to be able to filter on a variable in this dataset and create a new one with reduced variables?

Thank you.

6 REPLIES 6
dkb
Quartz | Level 8 dkb
Quartz | Level 8

Did you create an EG project, import the CSV file into WORK, close the project thus ending your SAS session and losing your work directory, then reopen the project and discover the work table doesn't exist?  If so, just import into a permanent library instead of WORK.

Steelers_In_DC
Barite | Level 11

when you import the csv look at the code that EG builds, and the log.  Make sure you are referencing the same data set name that EG is using.

ChrisHemedinger
Community Manager

Echoing what others have said:

  • by default, the Import Data task will generate a data set in WORK, a temporary library that is deleted at the end of your SAS session.
  • You can change the Import Data task to place the output data in a permanent library, one that persists from session to session.  Either a SAS admin can create something like that for your use or you can assign it yourself using the LIBNAME statement in a program before the Import task.
  • If you're working on a SAS Grid environment where the SAS node might be different from task to task (as work is assigned to balance the load), you will need to use a shared WORK location (a.k.a. GRIDWORK) to keep a semipermanent set of data sets that can be shared across the grid nodes during your SAS Enterprise Guide session.  This behavior is facilitated for you with varying degrees, depending on what version of SAS Enterprise Guide and SAS you have.

Chris

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
spg
Obsidian | Level 7 spg
Obsidian | Level 7

Thank you all. Yes, the file was being saved temporarily in the Work environment...but neither the filter nor the query builder would work. I tried writing a sql code today instead....and it works just fine. Maybe it is one those quirks I have to get used to?

ChrisHemedinger
Community Manager

That should not be the case -- the Query Builder should work with this data.  I recommend that you work with SAS Tech Support to see what's going on, as it might affect your ability to run other tasks against this imported data.

Chris

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
spg
Obsidian | Level 7 spg
Obsidian | Level 7

Oh ok. Will do Chris. Thank you again!

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
  • 6 replies
  • 6774 views
  • 7 likes
  • 4 in conversation