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
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.
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.
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.