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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 4670 views
  • 1 like
  • 3 in conversation