<?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: Load sharepoint URL with XML into SAS using Base SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228509#M41282</link>
    <description>&lt;P&gt;Are you trying to parse the URL to extract specific&amp;nbsp;key-value pairs? I looked at the&amp;nbsp;URL string that you provided, and the parameters&lt;FONT face="courier new,courier"&gt;&amp;nbsp;Title, TestColumn1, TestColumn2, Category, Item Type&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Path&lt;/FONT&gt; are &lt;U&gt;not&lt;/U&gt; among the parameters in the&amp;nbsp;URL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps you are trying to have SAS&amp;nbsp;act as the "user agent" that sends HTTP "get" requests back and forth to the Sharepoint site, in which case, your&amp;nbsp;objective is&amp;nbsp;to scrape web page output? This might be technically challenging if there are permissions on your Sharepoint site and/or if SAS is running on a non-Windows box. One of the reasons for this&amp;nbsp;is that SAS would be&amp;nbsp;an "agent" that is acting on one's&amp;nbsp;behalf,&amp;nbsp;and the default behavior is that SAS does not run under the same context as you. (I think my comment may apply if you are using SAS EG; I am not sure if it applies to PC SAS as I have not used the latter in a number of years).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- hbi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 19:39:37 GMT</pubDate>
    <dc:creator>hbi</dc:creator>
    <dc:date>2015-10-05T19:39:37Z</dc:date>
    <item>
      <title>Load sharepoint URL with XML into SAS using Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228057#M41151</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Dear all,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;I have received URL from Sharepoint that looks like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://intranet.croda.com/help/teamroom/_vti_bin/owssvr.dll?XMLDATA=1&amp;amp;List={036B8C80-CB89-41BE-8F65-4C3D530D4B6B}&amp;amp;View={078AE2C2-E991-4A85-8347-966728F67960}&amp;amp;RowLimit=0&amp;amp;RootFolder=%2fhelp%2fteamroom%2fLists%2fCockTestData" target="_blank"&gt;http://intranet.croda.com/help/teamroom/_vti_bin/owssvr.dll?XMLDATA=1&amp;amp;List={036B8C80-CB89-41BE-8F65-4C3D530D4B6B}&amp;amp;View={078AE2C2-E991-4A85-8347-966728F67960}&amp;amp;RowLimit=0&amp;amp;RootFolder=%2fhelp%2fteamroom%2fLists%2fCockTestData&lt;/A&gt;&lt;BR /&gt;Selection={036B8C80-CB89-41BE-8F65-4C3D530D4B6B}-{078AE2C2-E991-4A85-8347-966728F67960}&lt;BR /&gt;EditWebPage=&lt;BR /&gt;Formatting=None&lt;BR /&gt;PreFormattedTextToColumns=True&lt;BR /&gt;ConsecutiveDelimitersAsOne=True&lt;BR /&gt;SingleBlockTextImport=False&lt;BR /&gt;DisableDateRecognition=False&lt;BR /&gt;DisableRedirections=False&lt;BR /&gt;SharePointApplication=&lt;A href="http://intranet.croda.com/help/teamroom/_vti_bin" target="_blank"&gt;http://intranet.croda.com/help/teamroom/_vti_bin&lt;/A&gt;&lt;BR /&gt;SharePointListView={078AE2C2-E991-4A85-8347-966728F67960}&lt;BR /&gt;SharePointListName={036B8C80-CB89-41BE-8F65-4C3D530D4B6B}&lt;BR /&gt;RootFolder=/help/teamroom/Lists/CockTestData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;That is, indeed, a very long URL.....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;When I copy this URL in the webbrowser and subsequently press on Enter, then I see an XML output on the screen:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;xml&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;xmlns:s&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;xmlns:dt&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;xmlns:rs&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;urn:schemas-microsoft-com:rowset&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;xmlns:z&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;#RowsetSchema&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV id="collapsible1" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;s:Schema&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;id&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;RowsetSchema&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="collapsible-content"&gt;
&lt;DIV id="collapsible2" class="collapsible"&gt;
&lt;DIV class="expanded"&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;s:ElementType&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;row&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;content&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;eltOnly&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;rs:CommandTimeout&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;30&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Experienced user will directly recognize the XML form.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;The XML loaded into excel will look like as demonstrated&amp;nbsp;in the attachment.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;U&gt;The question:&lt;/U&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;how can I import this URL into SAS and to get a SAS table that shows only the columns and rows as that from excel? (ignore auto filter, sort option in the header).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Your comment will be greatly appreciated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Cornelis Verboom&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11985i29C33CCC0E41F9FB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228057#M41151</guid>
      <dc:creator>Cornelis</dc:creator>
      <dc:date>2015-10-01T14:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load sharepoint URL with XML into SAS using Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228509#M41282</link>
      <description>&lt;P&gt;Are you trying to parse the URL to extract specific&amp;nbsp;key-value pairs? I looked at the&amp;nbsp;URL string that you provided, and the parameters&lt;FONT face="courier new,courier"&gt;&amp;nbsp;Title, TestColumn1, TestColumn2, Category, Item Type&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Path&lt;/FONT&gt; are &lt;U&gt;not&lt;/U&gt; among the parameters in the&amp;nbsp;URL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps you are trying to have SAS&amp;nbsp;act as the "user agent" that sends HTTP "get" requests back and forth to the Sharepoint site, in which case, your&amp;nbsp;objective is&amp;nbsp;to scrape web page output? This might be technically challenging if there are permissions on your Sharepoint site and/or if SAS is running on a non-Windows box. One of the reasons for this&amp;nbsp;is that SAS would be&amp;nbsp;an "agent" that is acting on one's&amp;nbsp;behalf,&amp;nbsp;and the default behavior is that SAS does not run under the same context as you. (I think my comment may apply if you are using SAS EG; I am not sure if it applies to PC SAS as I have not used the latter in a number of years).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- hbi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228509#M41282</guid>
      <dc:creator>hbi</dc:creator>
      <dc:date>2015-10-05T19:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load sharepoint URL with XML into SAS using Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228772#M41350</link>
      <description>&lt;P&gt;Hi hbi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct, I'm using SAS as an "user agent". Your answers/comments give the impression that the problem cannot be easily solved.&lt;/P&gt;
&lt;P&gt;a SAS technical support team is investigating this issue and if they have found the solution or the Sharepoint team is coming with an appropriate alternative, then I will let this site know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cornelis&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 05:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Load-sharepoint-URL-with-XML-into-SAS-using-Base-SAS/m-p/228772#M41350</guid>
      <dc:creator>Cornelis</dc:creator>
      <dc:date>2015-10-07T05:41:27Z</dc:date>
    </item>
  </channel>
</rss>

