<?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: infile statement &amp; HTML code... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52028#M10965</link>
    <description>scratch this problem...I figured it out...</description>
    <pubDate>Mon, 06 Oct 2008 23:34:20 GMT</pubDate>
    <dc:creator>_LB</dc:creator>
    <dc:date>2008-10-06T23:34:20Z</dc:date>
    <item>
      <title>infile statement &amp; HTML code...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52025#M10962</link>
      <description>Hello all;&lt;BR /&gt;
Does anyone know off-hand how to make an infile statement read and render HTML code properly.  This will be then used later for a procto statement. &lt;BR /&gt;
&lt;BR /&gt;
I have designated the LRECL statement to read the whole line and I have set the length of the single variable to the same, but it still cuts off after a certain number of characters...&lt;BR /&gt;
&lt;BR /&gt;
Thank you. &lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Mon, 06 Oct 2008 18:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52025#M10962</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-10-06T18:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement &amp; HTML code...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52026#M10963</link>
      <description>Specifying the LRECL= parameter should address input data line truncation condition, although you must consider the input data record content itself.&lt;BR /&gt;
&lt;BR /&gt;
Share what code you have for your DATA step to parse the HTML.  &lt;BR /&gt;
&lt;BR /&gt;
As far as generating HTML, you can use a SAS DATA _NULL_ step to generate the HTML tags, or consider how you might use ODS HTML possibly, depending on your requirements.  I have pasted a link to one of many technical papers found on the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  found using a search on related keywords with your post.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi27/p061-27.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi27/p061-27.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 06 Oct 2008 19:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52026#M10963</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-06T19:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement &amp; HTML code...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52027#M10964</link>
      <description>Scott;&lt;BR /&gt;
&lt;BR /&gt;
Version one:&lt;BR /&gt;
PROC IMPORT OUT= WORK.Html &lt;BR /&gt;
            DATAFILE= "\\webmcb07\heic\production\Templates\maintemplate&lt;BR /&gt;
.htm" &lt;BR /&gt;
      DBMS=DLM REPLACE;&lt;BR /&gt;
     *DELIMITER='20'x; &lt;BR /&gt;
     GETNAMES=NO;&lt;BR /&gt;
     DATAROW=1; &lt;BR /&gt;
RUN;&lt;BR /&gt;
This seems to work better than the infile statement. It creates 6 variables that I have to combine later. However, it still truncates the last var to 3 characters of which I cannot seem to control and so cuts off part of the output...&lt;BR /&gt;
&lt;BR /&gt;
The next alternative: &lt;BR /&gt;
DATA WORK.Html; &lt;BR /&gt;
length code $ 273;&lt;BR /&gt;
 infile  '\\webmcb07\heic\production\Templates\maintemplate&lt;BR /&gt;
.htm' lrecl=273; &lt;BR /&gt;
input code $;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Does not work as well as it seems to cut off  after it encounters a space;&lt;BR /&gt;
Any help would be grateful.&lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Mon, 06 Oct 2008 21:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52027#M10964</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-10-06T21:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement &amp; HTML code...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52028#M10965</link>
      <description>scratch this problem...I figured it out...</description>
      <pubDate>Mon, 06 Oct 2008 23:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-HTML-code/m-p/52028#M10965</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-10-06T23:34:20Z</dc:date>
    </item>
  </channel>
</rss>

