<?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 Error displaying Long Text in HTML in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Error-displaying-Long-Text-in-HTML/m-p/66455#M3315</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a stored process that displays the output of a PROC REPORT to an HTML.  One of the fields in the PROC REPORT is a text field having more than 200 characters.  The stored process is failing with an error as shown in the log snapshot below.  It seems like there is a maximum number of characters for the put statement.  Is that right?  Please let me know how I may be able to fix this issue.  &lt;BR /&gt;
&lt;BR /&gt;
Thank you!&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Donna&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
MPRINT(RMT_MANAGE_PAGE):   put 'Donna Montesclaros'; &lt;BR /&gt;
WARNING: Truncated record. &lt;BR /&gt;
3220      +put 'Thjis is a test comment           Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test&lt;BR /&gt;
&lt;BR /&gt;
3220     !+comment      Thjis i &lt;BR /&gt;
3221      +put ''; &lt;BR /&gt;
                _ &lt;BR /&gt;
                22 &lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, arrayname, #, (, +, /, //, ;, @, @@, OVERPRINT, _ALL_, _BLANKPAGE_, _ODS_, _PAGE_.  &lt;BR /&gt;
&lt;BR /&gt;
                 _</description>
    <pubDate>Mon, 23 Aug 2010 14:41:13 GMT</pubDate>
    <dc:creator>Donna_Elaine</dc:creator>
    <dc:date>2010-08-23T14:41:13Z</dc:date>
    <item>
      <title>Error displaying Long Text in HTML</title>
      <link>https://communities.sas.com/t5/Developers/Error-displaying-Long-Text-in-HTML/m-p/66455#M3315</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a stored process that displays the output of a PROC REPORT to an HTML.  One of the fields in the PROC REPORT is a text field having more than 200 characters.  The stored process is failing with an error as shown in the log snapshot below.  It seems like there is a maximum number of characters for the put statement.  Is that right?  Please let me know how I may be able to fix this issue.  &lt;BR /&gt;
&lt;BR /&gt;
Thank you!&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Donna&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
MPRINT(RMT_MANAGE_PAGE):   put 'Donna Montesclaros'; &lt;BR /&gt;
WARNING: Truncated record. &lt;BR /&gt;
3220      +put 'Thjis is a test comment           Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test comment Thjis is a test&lt;BR /&gt;
&lt;BR /&gt;
3220     !+comment      Thjis i &lt;BR /&gt;
3221      +put ''; &lt;BR /&gt;
                _ &lt;BR /&gt;
                22 &lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, arrayname, #, (, +, /, //, ;, @, @@, OVERPRINT, _ALL_, _BLANKPAGE_, _ODS_, _PAGE_.  &lt;BR /&gt;
&lt;BR /&gt;
                 _</description>
      <pubDate>Mon, 23 Aug 2010 14:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-displaying-Long-Text-in-HTML/m-p/66455#M3315</guid>
      <dc:creator>Donna_Elaine</dc:creator>
      <dc:date>2010-08-23T14:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error displaying Long Text in HTML</title>
      <link>https://communities.sas.com/t5/Developers/Error-displaying-Long-Text-in-HTML/m-p/66456#M3316</link>
      <description>Hi:&lt;BR /&gt;
  I'm confused, because PROC REPORT does not support the PUT statement, it supports only the LINE statement. Is there perhaps OTHER code (such as a DATA _NULL_) in your program that is writing your own &amp;lt;TD&amp;gt; tag????&lt;BR /&gt;
 &lt;BR /&gt;
   There are two different limits you could be running into with a PUT statement -- 1) the allowed line length for submitted program code statements -- and this Tech Support note has more information about this line length:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/5/953.html" target="_blank"&gt;http://support.sas.com/kb/5/953.html&lt;/A&gt;&lt;BR /&gt;
 or&lt;BR /&gt;
2)  the allowed line length (or LRECL) of the FILE to which your PUT statement writes. Usually, for a stored process, you write to _WEBOUT, a reserved FILEREF. For more information about writing directly to _WEBOUT with PUT statements, refer to page 116 in the Stored Process Developer's Guide:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/61271/PDF/default/stpug.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/stpug/61271/PDF/default/stpug.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
You might want to open a track with Tech Support on this issue. It seems unlikely to me that the issue is with PROC REPORT code and more likely that it is something else.&lt;BR /&gt;
&lt;BR /&gt;
To open a track with Tech Support, fill out the form at this link:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 23 Aug 2010 16:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-displaying-Long-Text-in-HTML/m-p/66456#M3316</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-23T16:34:16Z</dc:date>
    </item>
  </channel>
</rss>

