<?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 set start and end date for a time series but no interpolation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52093#M14317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean totally.&lt;/P&gt;&lt;P&gt;What outpu do you like ?&lt;/P&gt;&lt;P&gt;If you only want a list of monthes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; do i=1 to 62;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date=intnx('month','01jan2000'd,i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; format date monyy.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Apr 2012 06:19:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-04-01T06:19:27Z</dc:date>
    <item>
      <title>set start and end date for a time series but no interpolation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52092#M14316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, does anyone know how I can set a specified start date and an end date in a time series, but not inperolate like in using proc timeseries or proc expand.. So if I have a series that starts in Mar'2005, but my start date for all series I set it to Jan'2000, then all the series start at Jan'2000 and will have blanks for each month from Jan'2000 to Mar'2005.. I can do this in Proc Timeseries, but it also interpolates (in case if there are missing holes in between) which I don't want.&amp;nbsp;&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2012 05:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52092#M14316</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-04-01T05:32:37Z</dc:date>
    </item>
    <item>
      <title>set start and end date for a time series but no interpolation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52093#M14317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean totally.&lt;/P&gt;&lt;P&gt;What outpu do you like ?&lt;/P&gt;&lt;P&gt;If you only want a list of monthes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; do i=1 to 62;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date=intnx('month','01jan2000'd,i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; format date monyy.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2012 06:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52093#M14317</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-04-01T06:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: set start and end date for a time series but no interpolation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52094#M14318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, if each of my series (Store by Product, over 500 of them) has data from let's say Mar'2005 to Jun'2009, with Pricing data that has some holes in between.. I would like to extend that period from Jan'2000 to Dec'2011 with simply leaving the beginning (eg. Jan'2000 to Mar'2005) with blanks/missing, and the ends (eg.Jun'2009 to Dec'2011) also having missing data.. BUT, the original holes that are in between Mar'2005 and Jun'2009 to NOT be filled in or interploated.&amp;nbsp; Proc Timeseries allows to create the end (Jan'2000) and end (Dec'2011) , but the problem is that it also interpolates the holes in between Mar'2005 and Jun'2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have figured a way around it, but it's a 2 step process..&lt;/P&gt;&lt;P&gt;Step 1. Use Proc Timeseries to create the time frame as a shell, with meaningless info.. then Step 2. just merge the original Mar'2005 to Jun'2009 using a BY group, wiht the shell in Step1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's dooable, but I wondered if there's something quicker through either proc timeseries or proc expand..I think for Proc Expand I can Chose METHOD=NONE, but don't know how I can pick a start and end date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2012 12:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52094#M14318</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-04-01T12:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: set start and end date for a time series but no interpolation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52095#M14319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what your data structure is.&amp;nbsp; But you can add extra observations where needed using something like this.&lt;/P&gt;&lt;P&gt;Assuming that GROUP identifies the the unique analysis groupings and DATE is your date variable (also asuming DATE is a SAS date variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;data extra ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set have (keep=group date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if first.group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; date = '01JAN2000'd ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; date = '01DEC2011'd ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge extra have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by group date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2012 19:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52095#M14319</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-04-01T19:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: set start and end date for a time series but no interpolation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52096#M14320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Tom, I thought of a similar approach, but using proc timeseries.. I'll give yours a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 00:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/set-start-and-end-date-for-a-time-series-but-no-interpolation/m-p/52096#M14320</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-04-02T00:16:02Z</dc:date>
    </item>
  </channel>
</rss>

