Do you see WORK.PRELIM_DATA2 on the exact same workspace server instance where you try to execute the query?
Can you post the output from a proc contents?
proc datasets lib=work;
run;
With the data open in the data grid, click on the Properties icon (far right side of the toolbar in the data viewer). Use that to verify the data you're looking at is where you think it is.
Use the following code to see the library and dataset name. Most likely it's in a library that's not WORK.
proc sql;
select libname, memname,
from sashelp.vtable
where upper(memname)='PRELIM_DATA2';
quit;
Do you see WORK.PRELIM_DATA2 on the exact same workspace server instance where you try to execute the query?
Thanks - this one tipped me off. I was hovering over the table in the EG space and noticed it was on a different server - my SAS has two identical servers, and this one was located on the WORK directory on the other server. Rookie mistake.
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.