Learning SAS? Welcome to the exclusive online community for all SAS learners.

sas File WEBWORK. xxx does not exist.

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

sas File WEBWORK. xxx does not exist.

Hi I just downloaded SAS university edition. So I followed the instructions to create the folder

C:\SASUniversityEdition\myfolders

By mapping it in VirtualBox setting, I see there are some sub-folders as below.

Capture.PNG

 

Now I copy my dataset to the

myfolders

Then run the code.

proc contents data=xxx;
run;

However I get the error in the log:

ERROR: File WEBWORK.XXX.DATA does not exist.

Please help me, thanks.


Accepted Solutions
Solution
‎11-18-2016 07:57 PM
Super User
Posts: 19,770

Re: sas File WEBWORK. xxx does not exist.

Posted in reply to sas_newbie3

As I mentioned earlier dropping it into myfolders doesn't give you access. 

 

Try the following:

 

libname myfiles '/folders/myfolders';

 

proc contents ddata=myfiles.air_emp_underpaid;

run;

 

data air_emp_underpaid;

set myfiles.air_emp_underpaid;

run;

View solution in original post


All Replies
PROC Star
Posts: 1,759

Re: sas File WEBWORK. xxx does not exist.

Posted in reply to sas_newbie3

Run

 

%put path=%sysfunc(pathname(WEBWORK));

to know where to copy your datasets

Contributor
Posts: 28

Re: sas File WEBWORK. xxx does not exist.

@ChrisNZ

 

Run your code, 

I get

path=/folders/myfolders/.sasstudio/webwork/RS2105
Super User
Posts: 19,770

Re: sas File WEBWORK. xxx does not exist.

Posted in reply to sas_newbie3

Did you assign a library to myfolders? It isn't automatically assigned. Usually there aren't files in there by default either, did you put the VM in the same folder? You may get unexpected results then...

 

Please post the exact code submitted and the resulting log. 

Your dataset name shouldn't be confidential, if it is find a sample dataset online somewhere to test with. We don't need to see any results. 

Contributor
Posts: 28

Re: sas File WEBWORK. xxx does not exist.

@Reeza

If we run the code

proc contents data=air_emps_underpaid;
run;

 

The log is

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         
 57         proc contents data=air_emps_underpaid;
 ERROR: File WORK.AIR_EMPS_UNDERPAID.DATA does not exist.
 58         run;
 
 NOTE: Statements not processed because of errors noted above.
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 NOTE: The SAS System stopped processing this step because of errors.
 59         
 60         
 61         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 73   

 

Super User
Posts: 19,770

Re: sas File WEBWORK. xxx does not exist.

Posted in reply to sas_newbie3

You placed the dataset in your myfolders? And can't find it? 

 

 

Contributor
Posts: 28

Re: sas File WEBWORK. xxx does not exist.

Yes. I can't find it. The dataset in is the folder "myfolders".

Solution
‎11-18-2016 07:57 PM
Super User
Posts: 19,770

Re: sas File WEBWORK. xxx does not exist.

Posted in reply to sas_newbie3

As I mentioned earlier dropping it into myfolders doesn't give you access. 

 

Try the following:

 

libname myfiles '/folders/myfolders';

 

proc contents ddata=myfiles.air_emp_underpaid;

run;

 

data air_emp_underpaid;

set myfiles.air_emp_underpaid;

run;

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 940 views
  • 0 likes
  • 3 in conversation