<?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 Changing Format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564420#M11052</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've below input , Where i need to change the dates with&amp;nbsp; Week number , Starting&amp;nbsp;03JUN2019-09JUN2019 would be WEEK1 , 10JUN2019-16JUN2019 would be Shown as WEEK2 and so on.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WeekStart&amp;nbsp; WeekEnd&lt;BR /&gt;03Jun2019 09Jun2019&lt;BR /&gt;10Jun2019 16Jun2019&lt;BR /&gt;17Jun2019 23Jun2019&lt;BR /&gt;24Jun2019 30Jun2019&lt;BR /&gt;01Jul2019 07Jul2019&lt;BR /&gt;08Jul2019 14Jul2019&lt;BR /&gt;15Jul2019 21Jul2019&lt;BR /&gt;22Jul2019 28Jul2019&lt;BR /&gt;29Jul2019 04Aug2019&lt;BR /&gt;05Aug2019 11Aug2019&lt;BR /&gt;12Aug2019 18Aug2019&lt;BR /&gt;19Aug2019 25Aug2019&lt;BR /&gt;26Aug2019 01Sep2019&lt;BR /&gt;02Sep2019 08Sep2019&lt;BR /&gt;09Sep2019 15Sep2019&lt;BR /&gt;16Sep2019 22Sep2019&lt;BR /&gt;23Sep2019 29Sep2019&lt;BR /&gt;30Sep2019 06Oct2019&lt;BR /&gt;07Oct2019 13Oct2019&lt;BR /&gt;14Oct2019 20Oct2019&lt;BR /&gt;21Oct2019 27Oct2019&lt;BR /&gt;28Oct2019 03Nov2019&lt;BR /&gt;04Nov2019 10Nov2019&lt;BR /&gt;11Nov2019 17Nov2019&lt;BR /&gt;18Nov2019 24Nov2019&lt;BR /&gt;25Nov2019 01Dec2019&lt;BR /&gt;02Dec2019 08Dec2019&lt;BR /&gt;09Dec2019 15Dec2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think creating the PROC FORMAT would be more compatible way, Looking for help to get proc format created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any other approach to tackle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 09:53:17 GMT</pubDate>
    <dc:creator>jaiganesh</dc:creator>
    <dc:date>2019-06-07T09:53:17Z</dc:date>
    <item>
      <title>Changing Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564420#M11052</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've below input , Where i need to change the dates with&amp;nbsp; Week number , Starting&amp;nbsp;03JUN2019-09JUN2019 would be WEEK1 , 10JUN2019-16JUN2019 would be Shown as WEEK2 and so on.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WeekStart&amp;nbsp; WeekEnd&lt;BR /&gt;03Jun2019 09Jun2019&lt;BR /&gt;10Jun2019 16Jun2019&lt;BR /&gt;17Jun2019 23Jun2019&lt;BR /&gt;24Jun2019 30Jun2019&lt;BR /&gt;01Jul2019 07Jul2019&lt;BR /&gt;08Jul2019 14Jul2019&lt;BR /&gt;15Jul2019 21Jul2019&lt;BR /&gt;22Jul2019 28Jul2019&lt;BR /&gt;29Jul2019 04Aug2019&lt;BR /&gt;05Aug2019 11Aug2019&lt;BR /&gt;12Aug2019 18Aug2019&lt;BR /&gt;19Aug2019 25Aug2019&lt;BR /&gt;26Aug2019 01Sep2019&lt;BR /&gt;02Sep2019 08Sep2019&lt;BR /&gt;09Sep2019 15Sep2019&lt;BR /&gt;16Sep2019 22Sep2019&lt;BR /&gt;23Sep2019 29Sep2019&lt;BR /&gt;30Sep2019 06Oct2019&lt;BR /&gt;07Oct2019 13Oct2019&lt;BR /&gt;14Oct2019 20Oct2019&lt;BR /&gt;21Oct2019 27Oct2019&lt;BR /&gt;28Oct2019 03Nov2019&lt;BR /&gt;04Nov2019 10Nov2019&lt;BR /&gt;11Nov2019 17Nov2019&lt;BR /&gt;18Nov2019 24Nov2019&lt;BR /&gt;25Nov2019 01Dec2019&lt;BR /&gt;02Dec2019 08Dec2019&lt;BR /&gt;09Dec2019 15Dec2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think creating the PROC FORMAT would be more compatible way, Looking for help to get proc format created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any other approach to tackle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 09:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564420#M11052</guid>
      <dc:creator>jaiganesh</dc:creator>
      <dc:date>2019-06-07T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564421#M11053</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by weekstart weekend;
run;

data want;
set have;
by weekstart weekend;
week=cats('WEEK',put(_n_,best.));
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 10:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564421#M11053</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-06-07T10:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564453#M11058</link>
      <description />
      <pubDate>Fri, 07 Jun 2019 12:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564453#M11058</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-07T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564470#M11060</link>
      <description>&lt;P&gt;You don't really need a format.&amp;nbsp; You can could just use INTCK() function call. Use WEEK.2 interval since June 3rd is a Monday instead of a Sunday.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input date date9.;
  week = 1+intck('week.2','03JUN2019'd,date);
  format date date9.;
cards;
11JUN2019
24JUN2019
30JUN2019
01JUL2019
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Obs         date    week

 1     11JUN2019      2
 2     24JUN2019      4
 3     30JUN2019      4
 4     01JUL2019      5&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564470#M11060</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-07T14:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564481#M11062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240933"&gt;@jaiganesh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've below input , Where i need to change the dates with&amp;nbsp; Week number , Starting&amp;nbsp;03JUN2019-09JUN2019 would be WEEK1 , 10JUN2019-16JUN2019 would be Shown as WEEK2 and so on.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WeekStart&amp;nbsp; WeekEnd&lt;BR /&gt;03Jun2019 09Jun2019&lt;BR /&gt;10Jun2019 16Jun2019&lt;BR /&gt;17Jun2019 23Jun2019&lt;BR /&gt;24Jun2019 30Jun2019&lt;BR /&gt;01Jul2019 07Jul2019&lt;BR /&gt;08Jul2019 14Jul2019&lt;BR /&gt;15Jul2019 21Jul2019&lt;BR /&gt;22Jul2019 28Jul2019&lt;BR /&gt;29Jul2019 04Aug2019&lt;BR /&gt;05Aug2019 11Aug2019&lt;BR /&gt;12Aug2019 18Aug2019&lt;BR /&gt;19Aug2019 25Aug2019&lt;BR /&gt;26Aug2019 01Sep2019&lt;BR /&gt;02Sep2019 08Sep2019&lt;BR /&gt;09Sep2019 15Sep2019&lt;BR /&gt;16Sep2019 22Sep2019&lt;BR /&gt;23Sep2019 29Sep2019&lt;BR /&gt;30Sep2019 06Oct2019&lt;BR /&gt;07Oct2019 13Oct2019&lt;BR /&gt;14Oct2019 20Oct2019&lt;BR /&gt;21Oct2019 27Oct2019&lt;BR /&gt;28Oct2019 03Nov2019&lt;BR /&gt;04Nov2019 10Nov2019&lt;BR /&gt;11Nov2019 17Nov2019&lt;BR /&gt;18Nov2019 24Nov2019&lt;BR /&gt;25Nov2019 01Dec2019&lt;BR /&gt;02Dec2019 08Dec2019&lt;BR /&gt;09Dec2019 15Dec2019&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think creating the PROC FORMAT would be more compatible way, Looking for help to get proc format created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any other approach to tackle this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your data crosses a year boundary you need to indicate what you expect for some of the values into the next calendar year. Weeks are not a very nice interval to play with because they do not divide a years or months into integer intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Format/m-p/564481#M11062</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-07T14:54:28Z</dc:date>
    </item>
  </channel>
</rss>

