BookmarkSubscribeRSS Feed
Varha613
Calcite | Level 5

Hello, I am working on the demo: using an SQL pass-through query from SAS SQL 1:Essentials. But I'm having trouble accessing the results. 

 

proc sql;
connect to pcfiles(path="&path/database/SQL_DB.accdb" dbpassword=sastest);
select * from connection to pcfiles
(select top 10, UserID, Income, State
from customer
order by Income desc);
disconnect from pcfiles;
quit;

 
 
Can someone help figure out why this is happening? Please and thank you!
I am doing it on my MacBook, I'm thinking that could be the issue since PCFile isn't on the Mac. Is there any other I can use to complete this lesson?
2 REPLIES 2
LinusH
Tourmaline | Level 20
It's pretty much in the message, you need to specify on which server your SAS PC Files Server is executing.
This information should be documented for your environment.
Data never sleeps
Ksharp
Super User
You need another option 'server=' to make it work:
connect to pcfiles(path="&path/database/SQL_DB.accdb" dbpassword=sastest server=xxxxxxx);

Or you could try PROC IMPORT + DBMS=ACCESS , since you are trying to read in a ACCESS datafile.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 339 views
  • 2 likes
  • 3 in conversation