LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 13 Oct 2005 12:14:39 +1000
Reply-To:   Scott Bass <usenet739_yahoo_com_au@ALFREDO.CC.UGA.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Scott Bass <usenet739_yahoo_com_au@ALFREDO.CC.UGA.EDU>
Subject:   Reading SAS data into Excel using ODBC
Comments:   To: sas-l@uga.edu

SAS 9.x Windows 2000 Professional

Summary: Staff in my deparment, who don't have SAS installed on their computers, have need to read SAS data into Excel for further analysis.

Details: For the sake of brevity, I will only summarize what I've done. I can do what I want if I create a User or System DSN, then open that DSN (in C:\Program Files\Common Files\ODBC\Data Sources) in Excel. This pops up a window where I can select the dataset of interest. Alternatively, I can open My Documents\My Data Sources\+Connect to New Data Source.odc in Excel, create an ODC file, and accomplish the same thing. I've gotten this to work with both a local server or SAS/Share server (running on my local machine).

Problem: My colleagues will want to do this without creating any DSNs on their machines. To test this, when I copied the DSN file to a network drive and accessed them from another computer, it failed. Perhaps that's why they are called "(non sharable)"? If I try to create a DSN under the File DSN tab, I cannot create settings in the Servers and Libraries tab of the SAS ODBC dialog.

I have read the SAS ODBC Driver: User's Guide and Programmer's Reference doc.

Questions:

1. Can this even be done, or are local DSN definitions required for every user that needs to access the SAS data?

2. What's the difference between a DSN and ODC file? They seem to accomplish the same thing.

3. How can I create a File DSN where I can specify the Server and Libraries during definition?

4. The ODC creation process (using Microsoft OLE DB provider for ODBC Drivers), in the Data Link Properties Window, Connection tab, has the Connection String field. Can someone provide a typical connection string without using a DSN?

5. Bonus: we have a SAS/Share server running on a Unix box (on the other side of the world). It would be cool to connect to that SAS/Share server and download the data from there into Excel. What do I need to do to connect to that server? Do I need to know the port it's listening on? Do I need to edit my local services file? Etc.

Thanks, Scott


Back to: Top of message | Previous page | Main SAS-L page