Hi folks,
We have EG 7.1 64 bits connecting with our Unix server (SAS 9.4 M5). I know that you can export to .mdb using point-and-click options if you have Office 64 bits installed or Microsoft ACE 64-bits. We have license PC Files but we don't have it configure in a Windows machine. So, there is any way to export, using programming, to .mdb? For example, for Microsoft Excel exists the option to "export" using ODS Excel.
Regards,
The path can be anywhere that the SAS PC File Server recognises. If it is on your SAS Unix server then a folder share would need to be created on Unix and accessible from Windows.
If you want to export to MS Access from SAS \ Eguide using code, then you can use PROC EXPORT if you license SAS/Access to PC Files on the SAS server and you also install a piece of software called PC Files Server on a network PC. The documentation for PC Files Server (including examples of the code you would use) can be found here:
In this example, you export data from the SAS data set WORK.SASCUSTOMERS to create a new table, Customers_2, which is located on same Windows machine as the SAS PC Files Server.
PROC EXPORT DATA=WORK.SASCUSTOMERS OUTTABLE='Customers_2' DBMS=ACCESSCS REPLACE ; DATABASE='mydrive:\yourAccessdirectory\AnnualFiles.accdb'; SERVER='myPCFServer.com'; PORT=9621; DBDSOPTS='INSERTBUFF=15'; RUN;
The Windows machine you install the SAS PC File Server on needs to be accessible from your SAS Unix server, including the port you will use to communicate (often controlled by firewall rules). For that reason it may be easier to share a single machine. At least that way the SAS code you use would be the same for all users - same server name and port number.
Thanks @SASKiwi. One last question. The path where the file will be create is on Windows (where PCFF is installed or visible through network)? Or is it possible to define a path on my SAS Unix server too?
The path can be anywhere that the SAS PC File Server recognises. If it is on your SAS Unix server then a folder share would need to be created on Unix and accessible from Windows.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.