Please run proc setinit and proc productstatus to verify that you have ACCESS to PC Files licensed and installed.
You can avoid all the hassle by simply saving the data to a csv file and importing it with a data step.
i am student , that's my homework ;
i have the SAS license because i can get SAS for free from my college.
@tianerhu wrote:
i am student , that's my homework ;
i have the SAS license because i can get SAS for free from my college.
ARE YOU SURE? A definitive answer can only be given by running those procedures. We could go on for hundreds of posts before realizing that your installation is incomplete. Let's be prudent.
what you mean is PC files server ? yes , i have installed that .
now the code works , but in some conditions , but i feel somewhere is wrong , let me show you
first , i invert the sales.xls to SAS data set with import wizard and use the sasuser as the libref .
then , i write the code as following which does work
libname sasuser "C:\Users\Documents\Sales.xls";
proc print data = sasuser.sales;
where EmpID = '9888' or EmpID = '0177';
run;
but what i want to say ——i have invert the sales.xls to SAS data set ,why i access it directly instead of sales.xls ?
it's too late , i have to sleep . thank you for your help. i have work on the issue for 7 hours , i am almost crazy;
Thank you for your help , i will reply the next week, sorry about that, i have to prepare the midterm.
I'm about 90% certain that did not work. There happens to be a dataset in the sasuser library titled SALES but it's not your dataset. The SASUSER library is a default library in SAS and ships with all SAS installations.
Ok, I"m wrong.
thank you
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.