<?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 - one variable set to zero in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/proc-expand-one-variable-set-to-zero/m-p/345605#M10274</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to create minute intervals using proc expand. I am using 'method=step' which works well for most of my variables, but I would like the value of one/or a number of the variables that are carried forward to be set to zero.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am aware of the convert/transform option but cannot seem to get this working as such.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code looks something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc expand data = hk_floor.hk_a out=hk_floor.hk_aa to=minute method=step;
by _ric date_L_;
id time_l_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 00:52:14 GMT</pubDate>
    <dc:creator>tsetredst</dc:creator>
    <dc:date>2017-03-30T00:52:14Z</dc:date>
    <item>
      <title>proc expand - one variable set to zero</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/proc-expand-one-variable-set-to-zero/m-p/345605#M10274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to create minute intervals using proc expand. I am using 'method=step' which works well for most of my variables, but I would like the value of one/or a number of the variables that are carried forward to be set to zero.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am aware of the convert/transform option but cannot seem to get this working as such.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code looks something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc expand data = hk_floor.hk_a out=hk_floor.hk_aa to=minute method=step;
by _ric date_L_;
id time_l_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 00:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/proc-expand-one-variable-set-to-zero/m-p/345605#M10274</guid>
      <dc:creator>tsetredst</dc:creator>
      <dc:date>2017-03-30T00:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand - one variable set to zero</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/proc-expand-one-variable-set-to-zero/m-p/345964#M10281</link>
      <description>&lt;P&gt;You may want to provide a brief example of some imput data and the desired result for the rules you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The phrase "like the value of one/or a number of the variables that are carried forward to be set to zero" really should reflect which variables have the need based on the syntax you show. Otherwise we are completely guessing as to what syntax change may be needed.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 21:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/proc-expand-one-variable-set-to-zero/m-p/345964#M10281</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-30T21:00:26Z</dc:date>
    </item>
  </channel>
</rss>

