DATA Step, Macro, Functions and more

ERROR: File WORK.CORE_SCORE.DATA does not exist.

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

ERROR: File WORK.CORE_SCORE.DATA does not exist.

Hello I'm trying to do this portion of the tutorial:

http://support.sas.com/documentation/cdl/en/emgsj/66375/HTML/default/viewer.htm#n0o0v7spwdeoqcn11vnw...

 

Then I run into a runtime error where the first error message seems to be:

ERROR: File WORK.CORE_SCORE.DATA does not exist.

 

My Code:

proc sort data=<EMWS3>.score_SCORE out=bestlist;
by descending ep_target_b;
run; 
proc print data= bestlist; 
var control_number ep_target_b; 
run;

error_crop.png

Accepted Solutions
Solution
‎04-22-2017 10:43 PM
Super User
Posts: 5,507

Re: ERROR: File WORK.CORE_SCORE.DATA does not exist.

Posted in reply to student4463626

The libname does not actually belong in <brackets>.  If you have defined EMWS3 in a LIBNAME statement, use data sets within the folder without brackets:

 

proc sort data=EMWS3.score_SCORE out=bestlist;

 

SAS documentation uses brackets to indicate something is optional.  So if you were dealing with a temporary data set in the WORK library, you could refer to the data set as either WORK.score_SCORE or score_SCORE.

View solution in original post


All Replies
Solution
‎04-22-2017 10:43 PM
Super User
Posts: 5,507

Re: ERROR: File WORK.CORE_SCORE.DATA does not exist.

Posted in reply to student4463626

The libname does not actually belong in <brackets>.  If you have defined EMWS3 in a LIBNAME statement, use data sets within the folder without brackets:

 

proc sort data=EMWS3.score_SCORE out=bestlist;

 

SAS documentation uses brackets to indicate something is optional.  So if you were dealing with a temporary data set in the WORK library, you could refer to the data set as either WORK.score_SCORE or score_SCORE.

SAS Super FREQ
Posts: 8,866

Re: ERROR: File WORK.CORE_SCORE.DATA does not exist.

Posted in reply to student4463626
Hi:
@Astounding has the correct answer. If you are unfamiliar with the LIBNAME statement or how to address SAS datasets, then you might want to review the free Programming 1 class for the chapter on SAS Libraries and SAS datasets.

Just click on the Start Now button next to Programming 1 on this page:
https://support.sas.com/edu/elearning.html?ctry=us&productType=library
cynthia
New Contributor
Posts: 2

Re: ERROR: File WORK.CORE_SCORE.DATA does not exist.

[ Edited ]
Posted in reply to Cynthia_sas

Thank you Astounding and Cynthia. The initial error message has gone away. Now I'm left with:

ERROR: File EMWS3.SCORE_SCORE.DATA does not exist.

I will go through the Programming 1 and see if that reveals anything that would help me.

 

Edit:

Reading this revealed that my EM_IMPORT_DATA was not named SCORE_SCORE.DATA

http://support.sas.com/kb/24/470.html

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 917 views
  • 2 likes
  • 3 in conversation