<?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 proc expand in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand/m-p/417500#M67689</link>
    <description>&lt;P&gt;Just renewed our SAS license and I no longer have access to the SAS/ETS module.&amp;nbsp; I was wondering if someone could either run the below piece of code and post the results, or describe the results to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it creates 7day moving average calculations for the specified columns.&amp;nbsp; I was just wanting the exact output as I need to reproduce the results using a datastep now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.stocks(obs=20) out=stocks;
  where stock eq 'IBM';
  by date;
run;

proc expand data=stocks out=mav;
  id date;
  convert open          = open_mav        
          high          = high_mav
          low           = low_mav    
          / transformin=(setmiss 0) transformout=(movave 7)
          ;
%runquit;

proc print data=mav;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Nov 2017 18:06:26 GMT</pubDate>
    <dc:creator>RobP</dc:creator>
    <dc:date>2017-11-30T18:06:26Z</dc:date>
    <item>
      <title>proc expand</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand/m-p/417500#M67689</link>
      <description>&lt;P&gt;Just renewed our SAS license and I no longer have access to the SAS/ETS module.&amp;nbsp; I was wondering if someone could either run the below piece of code and post the results, or describe the results to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it creates 7day moving average calculations for the specified columns.&amp;nbsp; I was just wanting the exact output as I need to reproduce the results using a datastep now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.stocks(obs=20) out=stocks;
  where stock eq 'IBM';
  by date;
run;

proc expand data=stocks out=mav;
  id date;
  convert open          = open_mav        
          high          = high_mav
          low           = low_mav    
          / transformin=(setmiss 0) transformout=(movave 7)
          ;
%runquit;

proc print data=mav;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand/m-p/417500#M67689</guid>
      <dc:creator>RobP</dc:creator>
      <dc:date>2017-11-30T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-expand/m-p/417501#M67690</link>
      <description>If you sign up for SAS Academics on Demand, it includes the SAS ETS module and you can test it yourself.</description>
      <pubDate>Thu, 30 Nov 2017 18:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-expand/m-p/417501#M67690</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-30T18:11:27Z</dc:date>
    </item>
  </channel>
</rss>

