<?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 INPUT - How to read a single line which is longer than 32767 characters? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276868#M55515</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to import an URL with SAS that has more den 32767 characters in one line. Does anyone has an idea how I can solve this problem? ...maybe to store the rest in new SAS variables or in new lines?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here ist the "normal" code, that truncates after 32767 characters...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let url2Crawl = http://stores.ebay.de/Fraulein-Frohlich/_i.html?rt=nc%nrstr(%nrstr(&amp;amp;_sid))=1162449139%nrstr(%nrstr(&amp;amp;_trksid))=p4634.c0.m14.l1513%nrstr(%nrstr(&amp;amp;_pgn))=1;

filename crawler3 url "&amp;amp;url2Crawl";

data url(compress=char);
	infile crawler3 length=len lrecl=100000 encoding='utf-8';
	input lines $varying32767. len;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: 153 records were read from the infile CRAWLER3.
      The minimum record length was 0.
      The maximum record length was 79057.
NOTE: The data set WORK.URL has 153 observations and 1 variables.
NOTE: Compressing data set WORK.URL decreased size by 90.91 percent.
      Compressed is 2 pages; un-compressed would require 22 pages.
NOTE: DATA statement used (Total process time):
      real time           2.07 seconds
      cpu time            0.03 seconds&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Jun 2016 08:19:59 GMT</pubDate>
    <dc:creator>HendrikE</dc:creator>
    <dc:date>2016-06-13T08:19:59Z</dc:date>
    <item>
      <title>INPUT - How to read a single line which is longer than 32767 characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276868#M55515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to import an URL with SAS that has more den 32767 characters in one line. Does anyone has an idea how I can solve this problem? ...maybe to store the rest in new SAS variables or in new lines?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here ist the "normal" code, that truncates after 32767 characters...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let url2Crawl = http://stores.ebay.de/Fraulein-Frohlich/_i.html?rt=nc%nrstr(%nrstr(&amp;amp;_sid))=1162449139%nrstr(%nrstr(&amp;amp;_trksid))=p4634.c0.m14.l1513%nrstr(%nrstr(&amp;amp;_pgn))=1;

filename crawler3 url "&amp;amp;url2Crawl";

data url(compress=char);
	infile crawler3 length=len lrecl=100000 encoding='utf-8';
	input lines $varying32767. len;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: 153 records were read from the infile CRAWLER3.
      The minimum record length was 0.
      The maximum record length was 79057.
NOTE: The data set WORK.URL has 153 observations and 1 variables.
NOTE: Compressing data set WORK.URL decreased size by 90.91 percent.
      Compressed is 2 pages; un-compressed would require 22 pages.
NOTE: DATA statement used (Total process time):
      real time           2.07 seconds
      cpu time            0.03 seconds&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2016 08:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276868#M55515</guid>
      <dc:creator>HendrikE</dc:creator>
      <dc:date>2016-06-13T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT - How to read a single line which is longer than 32767 characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276871#M55517</link>
      <description>&lt;P&gt;You will find this post quite interesting.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-To-Fetch-Data-From-Website-Through-SAS-Code/m-p/274057/highlight/true#M38102" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/How-To-Fetch-Data-From-Website-Through-SAS-Code/m-p/274057/highlight/true#M38102&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply put you will need to be a bit more creative to scrape website data.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 08:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276871#M55517</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-13T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT - How to read a single line which is longer than 32767 characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276878#M55519</link>
      <description>&lt;P&gt;My problem was solved here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/CoDe-SAS-German/Einlesen-von-mehr-als-32767-Zeichen/gpm-p/276862#M2032" target="_blank"&gt;https://communities.sas.com/t5/CoDe-SAS-German/Einlesen-von-mehr-als-32767-Zeichen/gpm-p/276862#M2032&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276878#M55519</guid>
      <dc:creator>HendrikE</dc:creator>
      <dc:date>2016-06-13T09:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT - How to read a single line which is longer than 32767 characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276882#M55521</link>
      <description>&lt;P&gt;Treat it like a STREAM FILE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let url2Crawl = http://stores.ebay.de/Fraulein-Frohlich/_i.html?rt=nc%nrstr(%nrstr(&amp;amp;_sid))=1162449139%nrstr(%nrstr(&amp;amp;_trksid))=p4634.c0.m14.l1513%nrstr(%nrstr(&amp;amp;_pgn))=1;

filename crawler3 url "&amp;amp;url2Crawl";

data url(compress=char);
	infile crawler3 recfm=n dlm='&amp;lt;&amp;gt;' dsd encoding='utf-8';
	input lines : $2000. @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INPUT-How-to-read-a-single-line-which-is-longer-than-32767/m-p/276882#M55521</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-13T09:40:51Z</dc:date>
    </item>
  </channel>
</rss>

