BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
claremc
Obsidian | Level 7

Hello, 

 

I am attempting to transpose a dataset in my work library that I just created. The dataset sorts, and then it does not allow me to transpose and gives me the error message:

 

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

 

However, it does exist! Do you know what could be happening? 

 

Thanks, 

Clare 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

First, when SAS says the dataset does not exist and the user says it does exist, I believe SAS. So please check for spelling errors. Also check to make sure this data set exists in your WORK library and not in some other library.

 

If that doesn't solve the problem, please show us the code (as text) you are using and also a screen capture of the Library panel in your SAS.

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

First, when SAS says the dataset does not exist and the user says it does exist, I believe SAS. So please check for spelling errors. Also check to make sure this data set exists in your WORK library and not in some other library.

 

If that doesn't solve the problem, please show us the code (as text) you are using and also a screen capture of the Library panel in your SAS.

--
Paige Miller
claremc
Obsidian | Level 7
It ended up being an error in my spelling! Thank you!
Tom
Super User Tom
Super User

Most likely a typo in your code.  This is what you described you ran:

proc sort .... out=PCRDUP_CHECK_MINUSDUPS ;
  ...
run;
proc transpose data=PCRDUP_CHECK_MINUSDUPS ... ;
  ...
run;

So make sure the dataset written by PROC SORT is the same one you are trying to reference in PROC TRANSPOSE.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 4570 views
  • 1 like
  • 3 in conversation