<?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 print array in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379261#M3117</link>
    <description>&lt;P&gt;The requirement is: Print a table containing the number of observations, median, mean, and standard deviation for temperatures for each of the two days individually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output I got is&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10518i16F15A226CB7A0A8/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="WechatIMG250.jpeg" title="WechatIMG250.jpeg" /&gt;Does anyone know how to show like this&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10519i458E58BC3896B2C0/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="WechatIMG251.jpeg" title="WechatIMG251.jpeg" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data hw6.hotdays_ydu18;
   infile "/home/ydu180/hw6/hourly_temps.txt" dlm=' ';
   do Day=1 to 2;
      do Hour=1 to 24;
         input Temp@@;
         output;
      end;
   end;
run;

/*d*/
title2"Part 3d";
proc means data=hw6.hotdays_ydu18 N Median Mean STD;
   var Temp:;
   by Day;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jul 2017 02:24:37 GMT</pubDate>
    <dc:creator>ydu180</dc:creator>
    <dc:date>2017-07-26T02:24:37Z</dc:date>
    <item>
      <title>print array</title>
      <link>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379261#M3117</link>
      <description>&lt;P&gt;The requirement is: Print a table containing the number of observations, median, mean, and standard deviation for temperatures for each of the two days individually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output I got is&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10518i16F15A226CB7A0A8/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="WechatIMG250.jpeg" title="WechatIMG250.jpeg" /&gt;Does anyone know how to show like this&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10519i458E58BC3896B2C0/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="WechatIMG251.jpeg" title="WechatIMG251.jpeg" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data hw6.hotdays_ydu18;
   infile "/home/ydu180/hw6/hourly_temps.txt" dlm=' ';
   do Day=1 to 2;
      do Hour=1 to 24;
         input Temp@@;
         output;
      end;
   end;
run;

/*d*/
title2"Part 3d";
proc means data=hw6.hotdays_ydu18 N Median Mean STD;
   var Temp:;
   by Day;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 02:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379261#M3117</guid>
      <dc:creator>ydu180</dc:creator>
      <dc:date>2017-07-26T02:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: print array</title>
      <link>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379272#M3119</link>
      <description>&lt;P&gt;Use the output statement in proc means to create a new dataset, and use proc print from that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For further help, post the .txt file as attachment, or copy/paste it into a {i} window&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 05:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379272#M3119</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-26T05:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: print array</title>
      <link>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379340#M3128</link>
      <description>&lt;P&gt;If you have SAS9.4 , try SQL instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select day,count(*) as N,median(temp) as median,mean(temp) as mean,std(temp) as std
 from have
  group by day;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379340#M3128</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-26T11:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: print array</title>
      <link>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379411#M3138</link>
      <description>&lt;P&gt;One way:&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=hw6.hotdays_ydu18;
  class day;
  var temp;
  table day,
        n='Nobs' temp*(N Median Mode STD);
run;

&lt;/PRE&gt;
&lt;P&gt;Options available to specify different formats do control number of displayed digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first n='Nobs' will show the count of the DAY variable value,&amp;nbsp;the second is non-missing Temp values.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/print-array/m-p/379411#M3138</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-26T14:44:05Z</dc:date>
    </item>
  </channel>
</rss>

