<?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 Re: Proc Expand in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445844#M28840</link>
    <description>&lt;P&gt;The problem&amp;nbsp; is in the CONVERT statement, namely the "/observed=..." parameter.&amp;nbsp; When absent, this parameter defaults to "beginning", as in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;convert mdhcp /observed=(beginning,beginning);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which tells expand that both the incoming data and the outgoing data represent the "beginning" of the interval.&amp;nbsp; So for f&lt;EM&gt;&lt;STRONG&gt;rom=qtr to=month&lt;/STRONG&gt;&lt;/EM&gt; it means that the last outgoing item is for the beginning of the interval, namely october for quarter 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try something like&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; convert mdhcp/observed=(total,total);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which should divide up each&amp;nbsp; MDHCP into 3 almost-equal amounts. I say&amp;nbsp; "almost equal" because the number of days in various months are "almost&amp;nbsp; equal".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;convert mdhcp/observed=(average,average);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which would work if mchcp is a&amp;nbsp; daily rate, recorded over a month, and you want daily rates for months.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 14:16:48 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-03-15T14:16:48Z</dc:date>
    <item>
      <title>Proc Expand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445691#M28830</link>
      <description>&lt;P&gt;I have data with all 4 quarter data however when i do Proc Expand and convert from Qtr to Month its only giving up to October data .&amp;nbsp;&lt;/P&gt;&lt;P&gt;New_date is formated as YYq.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc expand data=MS_score1 out=MS_score from=qtr to=month;&lt;BR /&gt;convert MDHCP;&lt;BR /&gt;by RID FullName;&lt;BR /&gt;id new_date;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to get the other two months&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 19:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445691#M28830</guid>
      <dc:creator>hk2013</dc:creator>
      <dc:date>2019-01-15T19:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445706#M28832</link>
      <description>For a problem like this we also need sample data to replicate your issue.</description>
      <pubDate>Thu, 15 Mar 2018 02:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445706#M28832</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-15T02:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445709#M28833</link>
      <description>&lt;P&gt;here is a example of the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;name&amp;nbsp; &amp;nbsp;qtr&amp;nbsp; &amp;nbsp; &amp;nbsp;score&amp;nbsp;&lt;/P&gt;&lt;P&gt;JUNG 2017Q1 38&lt;BR /&gt;JUNG 2017Q2 19&lt;BR /&gt;JUNG 2017Q3 27&lt;BR /&gt;JUNG 2017Q4 33&lt;BR /&gt;PHAM 2017Q1 17&lt;BR /&gt;PHAM 2017Q2 17&lt;BR /&gt;PHAM 2017Q3 15&lt;BR /&gt;PHAM 2017Q4 16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the out comes out to be and its missing NOv and dec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JUNGJAN2017&lt;BR /&gt;JUNG FEB2017&lt;BR /&gt;JUNG MAR2017&lt;BR /&gt;JUNG APR2017&lt;BR /&gt;JUNG MAY2017&lt;BR /&gt;JUNG JUN2017&lt;BR /&gt;JUNGJUL2017&lt;BR /&gt;JUNGAUG2017&lt;BR /&gt;JUNG SEP2017&lt;BR /&gt;JUNG OCT2017&lt;BR /&gt;PHAMJAN2017&lt;BR /&gt;PHAMFEB2017&lt;BR /&gt;PHAMMAR2017&lt;BR /&gt;PHAM APR2017&lt;BR /&gt;PHAMMAY2017&lt;BR /&gt;PHAMJUN2017&lt;BR /&gt;PHAMJUL2017&lt;BR /&gt;PHAM AUG2017&lt;BR /&gt;PHAM SEP2017&lt;BR /&gt;PHAM OCT2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 03:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445709#M28833</guid>
      <dc:creator>hk2013</dc:creator>
      <dc:date>2018-03-15T03:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445844#M28840</link>
      <description>&lt;P&gt;The problem&amp;nbsp; is in the CONVERT statement, namely the "/observed=..." parameter.&amp;nbsp; When absent, this parameter defaults to "beginning", as in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;convert mdhcp /observed=(beginning,beginning);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which tells expand that both the incoming data and the outgoing data represent the "beginning" of the interval.&amp;nbsp; So for f&lt;EM&gt;&lt;STRONG&gt;rom=qtr to=month&lt;/STRONG&gt;&lt;/EM&gt; it means that the last outgoing item is for the beginning of the interval, namely october for quarter 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try something like&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; convert mdhcp/observed=(total,total);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which should divide up each&amp;nbsp; MDHCP into 3 almost-equal amounts. I say&amp;nbsp; "almost equal" because the number of days in various months are "almost&amp;nbsp; equal".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;convert mdhcp/observed=(average,average);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which would work if mchcp is a&amp;nbsp; daily rate, recorded over a month, and you want daily rates for months.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Expand/m-p/445844#M28840</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-03-15T14:16:48Z</dc:date>
    </item>
  </channel>
</rss>

