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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.