<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reading SAS Data on my Windows laptop in Microsoft Power BI in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959946#M5028</link>
    <description>&lt;P&gt;Would you be able to expand a little more on your connection string?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand the Provider= portion, but surely there are more options need for the full connection string?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 19:51:50 GMT</pubDate>
    <dc:creator>GBL__</dc:creator>
    <dc:date>2025-02-21T19:51:50Z</dc:date>
    <item>
      <title>Reading SAS Data on my Windows laptop in Microsoft Power BI</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959065#M5025</link>
      <description>&lt;P&gt;Like some others here, I am trying to use Power BI Desktop to connect to some SAS files that I have stored on my local laptop.&lt;/P&gt;&lt;P&gt;My laptop is running Windows 10. On it, I have SAS 9.4 M7 and Power BI Desktop installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following some suggestions, I had luck connecting Power BI to SAS by choosing:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get Data --&amp;gt; Other --&amp;gt; OLE DB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And using this Connection String:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;provider=sas.IOMProvider.9.47&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(First time i do this, it asks me for my userid and password - I just entered my Windows userid and password for my laptop)&lt;/P&gt;&lt;P&gt;And it works (sort of)! I can see a list of SAS built-in libraries and datasets - MAPS and SASHELP libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I add additional libraries to this list? For example, I'd like to see the SAS datasets stored on "C:\mySASFiles" which I usually submit a SAS statement in SAS Enterprise Guide like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;LIBNAME MYFILES "C:\mySASFiles";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Feb 2025 16:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959065#M5025</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2025-02-12T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading SAS Data on my Windows laptop in Microsoft Power BI</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959509#M5026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Probably you'll need to pre-assign the library by declaring it on either the default autoexec or sasv9.cfg files. This way when PowerBi connects and kick-starts the SAS session the library should be available.&lt;/P&gt;
&lt;P&gt;You can include the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;LIBNAME&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement in an autoexec file, which is executed automatically when you start your SAS session.&lt;/P&gt;
&lt;PRE&gt;&lt;BUTTON class="b_wptc_pcopy" tabindex="0" type="button" aria-label="Copy" data-title="Copy"&gt;&lt;/BUTTON&gt;&lt;CODE class="language-sas"&gt;/* autoexec.sas */
libname mylib 'C:\path\to\your\library';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P data-bm="45"&gt;You can also add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;LIBNAME&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement to your SAS configuration file (&lt;CODE&gt;SASV9.CFG&lt;/CODE&gt;).&lt;/P&gt;
&lt;PRE data-bm="46"&gt;&lt;BUTTON class="b_wptc_pcopy" tabindex="0" type="button" aria-label="Copy" data-title="Copy" data-bm="51"&gt;&lt;/BUTTON&gt;&lt;CODE class="language-plaintext"&gt;-LIBNAME mylib 'C:\path\to\your\library'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 17:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959509#M5026</guid>
      <dc:creator>MrSantos</dc:creator>
      <dc:date>2025-02-18T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading SAS Data on my Windows laptop in Microsoft Power BI</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959545#M5027</link>
      <description>&lt;P&gt;Thanks that worked!&lt;/P&gt;&lt;P&gt;IT has restricted my access to SASV9.CFG file, so I created an AUTOEXEC.SAS file containing the LIBNAME statements in a different folder:&lt;/P&gt;&lt;P&gt;C:\Users\&lt;EM&gt;my-UserID&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Then, I had to go to Windows Settings, Environment Variables, and add that folder to my PATH, so SAS would search for AUTOEXEC.SAS there.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 20:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959545#M5027</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2025-02-18T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reading SAS Data on my Windows laptop in Microsoft Power BI</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959946#M5028</link>
      <description>&lt;P&gt;Would you be able to expand a little more on your connection string?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand the Provider= portion, but surely there are more options need for the full connection string?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 19:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/959946#M5028</guid>
      <dc:creator>GBL__</dc:creator>
      <dc:date>2025-02-21T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading SAS Data on my Windows laptop in Microsoft Power BI</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/960088#M5029</link>
      <description>&lt;P&gt;You're right. The full connection string contains a lot more options, like this example:&lt;/P&gt;&lt;PRE&gt;Provider=SAOLEDB.1; Data Source=your_server_name; Initial Catalog=your_database_name; User ID=your_username; Password=your_password;&lt;/PRE&gt;&lt;P&gt;But I'm connecting to SAS 9.4 running local on my Windows PC, so the only REQUIRED option is "Provider=".&lt;/P&gt;&lt;P&gt;The other options are needed when you are connecting to SAS Viya or SAS 9.4 on a remote server.&lt;/P&gt;&lt;P&gt;I have to admit, the Power BI OLE DB connection tool did ask for my userid and password the first time I tried the connection - so I entered my Windows domain ID and password into some textboxes that popped up, but after that, it didn't ask for userid or password again.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 14:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Reading-SAS-Data-on-my-Windows-laptop-in-Microsoft-Power-BI/m-p/960088#M5029</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2025-02-24T14:09:50Z</dc:date>
    </item>
  </channel>
</rss>

