<?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: Creating by-weekly expenses in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105250#M9177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I basically want to fit a historical range of purchases dates into a by-weekly format. For every purchase between 01AUG2012 and 15AUG2012, label them as 15AUG2012 and the same for some other purchase between 16AUG2012 and 31AUG2012 with the label 31AUG2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i have too much data, i cannot keep creating a format within the recoded function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 17:21:42 GMT</pubDate>
    <dc:creator>CesarOmarHR</dc:creator>
    <dc:date>2013-04-11T17:21:42Z</dc:date>
    <item>
      <title>Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105248#M9175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to group daily expenses into a by-weekly format. Since i've worked with a small database i've used the recoded function and applied ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="126" style="border: 1px solid rgb(0, 0, 0); width: 252px; height: 105px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date of Charge&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;By-Weekly Expenses&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;16FEB2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;29FEB2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01MAR2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15MAR2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;19FEB2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28FEB2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;04APR2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15APR2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll appreciate the help to construct a condition to apply in the Advanced Expression option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;César&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 15:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105248#M9175</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2013-04-11T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105249#M9176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need some more detail as to what you're looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to look into is formats for the date variable that will automatically calculate a week portion of the date and then if you can use that to help with your calculation.&lt;/P&gt;&lt;P&gt;If you're looking for bi-weekly dates you could subtract or add 1 week to the result if you had an odd number for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105249#M9176</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-11T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105250#M9177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I basically want to fit a historical range of purchases dates into a by-weekly format. For every purchase between 01AUG2012 and 15AUG2012, label them as 15AUG2012 and the same for some other purchase between 16AUG2012 and 31AUG2012 with the label 31AUG2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i have too much data, i cannot keep creating a format within the recoded function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105250#M9177</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2013-04-11T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105251#M9178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your bi-weekly dates custom?&lt;/P&gt;&lt;P&gt;I'm recommending using SAS pre-built formats so that you don't need to rebuild anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105251#M9178</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-11T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105252#M9179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since i'm not that skillful yet with some unknown functions, i was given this (example) to arrange dates in a different bi-weekly format:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; line-height: 115%; mso-bidi-font-size: 11.0pt; font-size: 14pt; mso-hansi-theme-font: minor-latin; mso-ansi-language: ES-MX; font-family: 'Calibri','sans-serif'; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;ifn(day(t1.purchase_date)&amp;lt;=15, intnx('month',t1.purchase_date,0,'e'), intnx('month',t1.purchase_date,1,'m'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 14pt; mso-bidi-font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: ES-MX; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;I'm trying to understand the conditions from this formula to fit my neccesities in a customized format.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105252#M9179</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2013-04-11T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105253#M9180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to only divide it into two time periods for a month, not biweekly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105253#M9180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-11T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105254#M9181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bi_week2 gives you biweekly counts and you can add/subtract 7 to get it closer to what you need and seems simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the docs for the definition of the intnx function, but basically it increments dates within specified intervals, in this case a biweek interval, WEEK2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do date="01Mar2013"d to "01Jun2013"d;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_week=ifn(day(date)&amp;gt;=15, intnx('month',date,0,'e'), intnx('month',date,1,'m'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_week2=intnx('WEEK2', date, 0, 'BEGINNING');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; format date bi_week bi_week2 date9.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105254#M9181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-11T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating by-weekly expenses in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105255#M9182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; i'll give it a try and let you know.&lt;/P&gt;&lt;P&gt;I appreciate the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 18:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-by-weekly-expenses-in-EG/m-p/105255#M9182</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2013-04-11T18:21:29Z</dc:date>
    </item>
  </channel>
</rss>

