<?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: Proc Http - The quoted string currently being processed has become more than 262 characters long in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627717#M20572</link>
    <description>&lt;P&gt;Yes. But you have to physically copy the file to the machine where SAS is running.&amp;nbsp; You cannot make the XLSX libname engine work via the URL filename engine.&amp;nbsp; So if you copied the file to your OUT temporary file then point the new libref at that file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname HDRS xlsx "%sysfunc(pathname(out))" ;
proc copy inlib=hdrs outlib=WORK;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 01:22:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-02-27T01:22:28Z</dc:date>
    <item>
      <title>Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627684#M20568</link>
      <description>&lt;P&gt;I want to use Proc http to download a xlsb file from a website, then read the data and manipulate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never used Proc http before and have two questions. Any advices would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First Question - my URL address is very long. I tried two different approaches as below, but both are getting the same warning message as following. How should I proceed with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; marks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st approach - quote the URL directly in proc http&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename out TEMP;&lt;BR /&gt;filename hdrs TEMP;&lt;/P&gt;&lt;P&gt;proc http url="&lt;A href="http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/_layouts/download.aspx?SourceUrl=http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/Data%20and%20Reports/Abcdefg" target="_blank" rel="noopener"&gt;http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/_layouts/download.aspx?SourceUrl=http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/Data%20and%20Reports/Abcdefg&lt;/A&gt; Dashboards/ABCD Info Abcdefg Dashboard.xlsb"&lt;BR /&gt;method="GET"&lt;BR /&gt;out=out&lt;BR /&gt;headerout=hdrs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd approach - try to break it into different parts and make it as a macro variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;LENGTH URL $20000;&lt;BR /&gt;URL=CATS('&lt;A href="http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/_layouts/download.aspx?SourceUrl=http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/" target="_blank" rel="noopener"&gt;http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/abcdegmeeting/_layouts/download.aspx?SourceUrl=http://sharesites.shareddrive.abcdeft.net/sites/tog-tops-001/abcdegmeeting/&lt;/A&gt;'&lt;BR /&gt;,'abcdegmeeting/Data%20and%20Reports/'&lt;BR /&gt;,'Abcdefg Dashboards/ABCD Info Abcdefg Dashboard.xlsb');&lt;BR /&gt;call symputx('URL',quote(trim(URL)," ' "));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;PROC HTTP URL=&amp;amp;URL&lt;BR /&gt;METHOD="GET"&lt;BR /&gt;OUT=out;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;My second question - assume my first question is solved and I could successfully run the procedure http, then how do I read the dataset? In this case, I would like to make '&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ABCD Info Abcdefg Dashboard.xlsb&lt;/SPAN&gt;' as a SAS dataset and mainpulate it.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Thanks for the advices.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627684#M20568</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2020-02-26T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627687#M20569</link>
      <description>&lt;P&gt;If your quoted string is actually longer than 262 then you can safely ignore that note.&amp;nbsp; Unbalanced quotes is a common mistake and SAS added that warning to help people figure out what was going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your file is really using XLS&lt;STRONG&gt;B&lt;/STRONG&gt; format instead of XLSX then you might have trouble reading it from SAS.&amp;nbsp; You might have to get Excel involved to help read that format.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627687#M20569</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-26T21:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627692#M20570</link>
      <description>&lt;P&gt;Thanks Tom. Is it because SAS cannot read XLSB file? A separate question, assume that is a XLSX file, how would I read it as a SAS dataset? By assignment a libname with XLSX engine and specifying a fileref?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627692#M20570</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2020-02-26T21:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627717#M20572</link>
      <description>&lt;P&gt;Yes. But you have to physically copy the file to the machine where SAS is running.&amp;nbsp; You cannot make the XLSX libname engine work via the URL filename engine.&amp;nbsp; So if you copied the file to your OUT temporary file then point the new libref at that file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname HDRS xlsx "%sysfunc(pathname(out))" ;
proc copy inlib=hdrs outlib=WORK;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 01:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/627717#M20572</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-27T01:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628004#M20618</link>
      <description>&lt;P&gt;Thanks Tom again. I am trying an alternative approach which is download the file from web site, save it in my desktop and move the file to SAS server under my user ID (using FTP). However, I am still getting error as below. I wonder if you could give me further advices?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"/sharedspace/abcd/users/a123456/Abcd_xyz_file_Update__yyyymmdd.xlsb"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=EXCEL &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sheet&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Abc&amp;nbsp;data Query Final"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: DBMS type EXCEL not valid for import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked up the SAS document as below and it says DBMS identifier = EXCEL could support MS Excel 2010 and later workbooks version. Since I am using MS excel 2016, I thought it should work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=p0jf3o1i67m044n1j0kz51ifhpvs.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=p0jf3o1i67m044n1j0kz51ifhpvs.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 18:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628004#M20618</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2020-02-27T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628013#M20620</link>
      <description>Does your SAS server run Windows?  Does it have Excel installed?  If not do you a SAS PC Files Server you can tell your code to connect to and see if it can convert the XLSXB file?&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Feb 2020 18:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628013#M20620</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-27T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Http - The quoted string currently being processed has become more than 262 characters long</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628022#M20622</link>
      <description>&lt;P&gt;My SAS server is on Unix which I believe it&amp;nbsp;does not support window/Excel. What I use to do often is&amp;nbsp;use FTP to transfer&amp;nbsp;excel or csv file from window&amp;nbsp;to SAS server and save it under my SAS user folder, it works all the times. Now I assume it does not work for xlsb only but I couldn't find any document to support my assumption.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 19:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Http-The-quoted-string-currently-being-processed-has-become/m-p/628022#M20622</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2020-02-27T19:18:13Z</dc:date>
    </item>
  </channel>
</rss>

