<?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 How to use a function within a print statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-function-within-a-print-statement/m-p/897327#M354577</link>
    <description>&lt;P&gt;This works, but I struggle to use a function like 'round' for the result nrows['numrows']&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;proc cas;
 
simple.numRows result=nrows status=s / table={name= 'TELYNET_WIDE_YTD_V16' caslib='onair'}; if (s.severity == 0) then 
print nrows['numrows']/1E6;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Oct 2023 09:16:58 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2023-10-05T09:16:58Z</dc:date>
    <item>
      <title>How to use a function within a print statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-function-within-a-print-statement/m-p/897327#M354577</link>
      <description>&lt;P&gt;This works, but I struggle to use a function like 'round' for the result nrows['numrows']&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;proc cas;
 
simple.numRows result=nrows status=s / table={name= 'TELYNET_WIDE_YTD_V16' caslib='onair'}; if (s.severity == 0) then 
print nrows['numrows']/1E6;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 09:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-function-within-a-print-statement/m-p/897327#M354577</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-10-05T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a function within a print statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-function-within-a-print-statement/m-p/897331#M354581</link>
      <description>&lt;P&gt;This may help you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;proc cas;
simple.numRows result=nrows status=s / table={name='TELYNET_WIDE_YTD_V16' caslib='onair'};
if (s.severity == 0) then
print round(nrows['numrows']/1E6) as RoundedNumRows;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-function-within-a-print-statement/m-p/897331#M354581</guid>
      <dc:creator>enesmolla</dc:creator>
      <dc:date>2023-10-05T10:36:16Z</dc:date>
    </item>
  </channel>
</rss>

