<?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: How to generate the fiscal year by 10K Filing date in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566501#M17394</link>
    <description>It's always May 30.</description>
    <pubDate>Mon, 17 Jun 2019 06:47:30 GMT</pubDate>
    <dc:creator>YuWeiLee</dc:creator>
    <dc:date>2019-06-17T06:47:30Z</dc:date>
    <item>
      <title>How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566498#M17391</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am new to SAS, so there is a fundamental question that I want to ask for help.&lt;BR /&gt;I have the list of all company of SEC 10K Filing date as follows:&lt;/P&gt;&lt;P&gt;Filing Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;04/29/1993&lt;/P&gt;&lt;P&gt;11/12/1993&lt;/P&gt;&lt;P&gt;11/29/1993&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My condition:&lt;/P&gt;&lt;P&gt;if the date is before 5/30 and it should be the fiscal year 1992, otherwise it is 1993&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the output will be&lt;/P&gt;&lt;P&gt;Filing Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fiscal Year&lt;/P&gt;&lt;P&gt;04/29/1993&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1992&lt;/P&gt;&lt;P&gt;11/12/1993&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1993&lt;/P&gt;&lt;P&gt;11/29/1993&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1993&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get the right fiscal year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566498#M17391</guid>
      <dc:creator>YuWeiLee</dc:creator>
      <dc:date>2019-06-17T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566499#M17392</link>
      <description>&lt;P&gt;Welcome to the SAS Communities &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input FilingDate :mmddyy10.;
format FilingDate mmddyy10.;
datalines;
04/29/1993
11/12/1993
11/29/1993
;

data want;
    set have;
    if FilingDate ge mdy(5,30,year(FilingDate)) then FiscalYear=year(FilingDate);
    else FiscalYear=year(FilingDate)-1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566499#M17392</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-17T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566500#M17393</link>
      <description>&lt;P&gt;Is it always May 30 or can that change in a leapyear?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566500#M17393</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-17T06:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566501#M17394</link>
      <description>It's always May 30.</description>
      <pubDate>Mon, 17 Jun 2019 06:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566501#M17394</guid>
      <dc:creator>YuWeiLee</dc:creator>
      <dc:date>2019-06-17T06:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566502#M17395</link>
      <description>&lt;P&gt;Then you should take &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;'s solution.&lt;/P&gt;
&lt;P&gt;A slight modification uses the ifn() function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;fiscalyear = ifn(filingdate ge mdy(5,30,year(filingdate)),year(filingdate),year(filingdate)-1));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/566502#M17395</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-17T06:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567224#M17402</link>
      <description>&lt;P&gt;If you are using the filing date from SEC's EDGAR database, then you can't determine with absolute certainty the fiscal year from the filing date of the 10-k.&amp;nbsp;Those are always filed &lt;U&gt;after&lt;/U&gt; the fiscal year ends to give companies time to compile the results and prepare the filing. For example, the company I work for filed their 10-k for FY ending 12/31 on 2/6/2019 a little over a month after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the deadline for filing a 10-k with the SEC is generally 60-90 days after the fiscal year ends, a better approach would be... &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;year(FilingDate - 60)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... which is only an approximation but should work in most cases. For example, Google filed their latest 10-k on 2/6/19, so the FY calculation would correctly yield 2018. It also works for retailers like Target and Wal-Mart whose&amp;nbsp;fiscal years end in January. Historically, their 10-k's are usually filed in March, so&amp;nbsp;the calculation would correctly generate&amp;nbsp;a fiscal year in the same year as the filing.&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>Wed, 19 Jun 2019 12:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567224#M17402</guid>
      <dc:creator>FloydNevseta</dc:creator>
      <dc:date>2019-06-19T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567249#M17403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are right, and I forget that my date isn't the end of the fiscal date! Could you tell me how I can modify the code base on draycut's? I am not familiar with SAS and afraid that I enter the wrong code &lt;img id="smileymad" class="emoticon emoticon-smileymad" src="https://communities.sas.com/i/smilies/16x16_smiley-mad.png" alt="Smiley Mad" title="Smiley Mad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if FDATE ge mdy(5,30,year(FDATE&amp;nbsp;- 60)) then FiscalYear=year(FDATE - 60);
else FiscalYear=year(FDATE - 60);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567249#M17403</guid>
      <dc:creator>YuWeiLee</dc:creator>
      <dc:date>2019-06-19T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate the fiscal year by 10K Filing date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567298#M17404</link>
      <description>&lt;P&gt;Another complication: If you look in the section "Notes to Consolidated Financial Statements", there's a paragraph that describes how the financial data is consolidated including a definition of fiscal year. Target describes fiscal year 2018 as ending 2/2/2019 while Wal-mart defines fiscal 2019 as ending 1/31/2019. So while both companies use Feb-Jan fiscal year, each defines the year differently. Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-generate-the-fiscal-year-by-10K-Filing-date/m-p/567298#M17404</guid>
      <dc:creator>FloydNevseta</dc:creator>
      <dc:date>2019-06-19T14:28:10Z</dc:date>
    </item>
  </channel>
</rss>

