<?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 Problem reading values from put (for html ) output in storeprocess in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Problem-reading-values-from-put-for-html-output-in-storeprocess/m-p/14149#M2340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to run a piece of code from my sas stored process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file _webout;&lt;/P&gt;&lt;P&gt;length&amp;nbsp; a 4;&lt;/P&gt;&lt;P&gt;a=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file _webout;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a+(-1) ' &amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a +(-1) '&amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I check the output in the stored process web app server...Its not reading values...Its giving blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;Value: .&lt;/P&gt;&lt;P&gt;Value: .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how can I read the values and display them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 23:24:42 GMT</pubDate>
    <dc:creator>Siri29</dc:creator>
    <dc:date>2011-09-21T23:24:42Z</dc:date>
    <item>
      <title>Problem reading values from put (for html ) output in storeprocess</title>
      <link>https://communities.sas.com/t5/Developers/Problem-reading-values-from-put-for-html-output-in-storeprocess/m-p/14149#M2340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to run a piece of code from my sas stored process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file _webout;&lt;/P&gt;&lt;P&gt;length&amp;nbsp; a 4;&lt;/P&gt;&lt;P&gt;a=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file _webout;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a+(-1) ' &amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a +(-1) '&amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I check the output in the stored process web app server...Its not reading values...Its giving blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;Value: .&lt;/P&gt;&lt;P&gt;Value: .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how can I read the values and display them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 23:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Problem-reading-values-from-put-for-html-output-in-storeprocess/m-p/14149#M2340</guid>
      <dc:creator>Siri29</dc:creator>
      <dc:date>2011-09-21T23:24:42Z</dc:date>
    </item>
    <item>
      <title>Problem reading values from put (for html ) output in storeprocess</title>
      <link>https://communities.sas.com/t5/Developers/Problem-reading-values-from-put-for-html-output-in-storeprocess/m-p/14150#M2341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BASE SAS actually automatically ends a PROC or DATA process when it encounters a RUN statement or the next PROC or DATA statement.&lt;/P&gt;&lt;P&gt;So the second data _null_ statement actually reinitializes the variable a to missing, and when you add anything to a missing value you still get missing as the result.&lt;/P&gt;&lt;P&gt;If you remove this second data _null_ statement, the process works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Included is a brief test that I completed in BASE SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;filename out 'c:\temp\test.html';&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file out;&lt;/P&gt;&lt;P&gt;length&amp;nbsp; a 4;&lt;/P&gt;&lt;P&gt;a=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a+(-1) ' &amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Value: ' a +(-1) '&amp;lt;br&amp;gt;';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="html put output.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1145_html put output.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;~ Angela Hall&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://blogs.sas.com/content/bi"&gt;http://blogs.sas.com/content/bi&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 23:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Problem-reading-values-from-put-for-html-output-in-storeprocess/m-p/14150#M2341</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2011-09-21T23:59:10Z</dc:date>
    </item>
  </channel>
</rss>

