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.
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!
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.