<?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 Query builder in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801218#M315304</link>
    <description>Hi All,&lt;BR /&gt;I Hope you all doing Great.&lt;BR /&gt;I require some assistance from you on how to use today's date in filter data tab in query builder. Any help would be greatly appreciated. Thanks in advance.</description>
    <pubDate>Thu, 10 Mar 2022 14:56:21 GMT</pubDate>
    <dc:creator>Pandu2</dc:creator>
    <dc:date>2022-03-10T14:56:21Z</dc:date>
    <item>
      <title>Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801218#M315304</link>
      <description>Hi All,&lt;BR /&gt;I Hope you all doing Great.&lt;BR /&gt;I require some assistance from you on how to use today's date in filter data tab in query builder. Any help would be greatly appreciated. Thanks in advance.</description>
      <pubDate>Thu, 10 Mar 2022 14:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801218#M315304</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-03-10T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801221#M315305</link>
      <description>&lt;P&gt;&lt;SPAN&gt;T1.date&amp;nbsp; is not a SAS date it seems? Why? You are making your life harder if you don't store a SAS date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;202210 this refers year and date&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I only see year and month?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;. That value needs to be changed on daily basis&amp;nbsp;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why change daily if you just filter on month?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 05:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801221#M315305</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-10T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801224#M315306</link>
      <description>It is T1.xyz it was already stored in a table so I'm just fetching the data by using the condition in filter the data tab i.e&lt;BR /&gt;T1.xyz = abcd it refers year and date so whenever the system date hits new week the date should change accordingly.&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 10 Mar 2022 14:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801224#M315306</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-03-10T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801227#M315308</link>
      <description>&lt;P&gt;I suppose you could use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where T1.Fiscalweek = year(today()) * 100 + week(today())&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check the week() function to see options about how the week is calculated&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 06:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801227#M315308</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-10T06:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801243#M315317</link>
      <description>Can't be thankful for your assistance. This is working nicely but needs to ensure whether it will change the date whenever the system date hits new week.</description>
      <pubDate>Thu, 10 Mar 2022 14:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801243#M315317</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-03-10T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801244#M315318</link>
      <description>&lt;P&gt;Try with a different date instead of today().&lt;/P&gt;
&lt;P&gt;Try '&lt;FONT face="courier new,courier"&gt;14mar2022'd&lt;/FONT&gt; for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you read about the week () function to ensure you have to appropriate option in place?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801244#M315318</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-10T07:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801245#M315319</link>
      <description>.</description>
      <pubDate>Thu, 10 Mar 2022 14:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801245#M315319</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-03-10T14:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801247#M315321</link>
      <description>.</description>
      <pubDate>Thu, 10 Mar 2022 14:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801247#M315321</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-03-10T14:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801249#M315323</link>
      <description>&lt;P&gt;&lt;STRONG&gt;TRY IT.&amp;nbsp;&lt;/STRONG&gt;(Maxim 4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
do date = '01jan2022' to today();
  week = week(date);
  output;
end;
format date yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look at the dataset to see if it provides the week numbers you expect. If this is not the case, post examples and the numbers you expect instead.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801249#M315323</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-10T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801250#M315324</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I tried by providing different dates but I found something strange. Feb 28th started on Monday and the week ended on 6th March for this entire week it should give the FW as 09 but from 28th Feb to 05Th March it is giving as 09. For 06th March it is giving the FW as 10th even though 6th was part of old week.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Study the documentation (Maxim1) of the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n1ka2ulrvrjlasn0z7beco2yrgas.htm" target="_blank" rel="noopener"&gt;WEEK Function&lt;/A&gt;&amp;nbsp;. It provides an additional parameter (called "descriptor" in the doc) which controls when the week begins, and how to treat incomplete weeks at the beginning of the year.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801250#M315324</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-10T07:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query builder in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801386#M315389</link>
      <description>&lt;P&gt;Please do not delete the contents of your post. The purpose of the forum is to create a searchable history for others as well.&lt;/P&gt;
&lt;P&gt;And when your questions are answered please select the appropriate response that answered your question and select that as the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-builder-in-sas/m-p/801386#M315389</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-10T16:22:23Z</dc:date>
    </item>
  </channel>
</rss>

