<?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: SAS  1year to 3/5 years in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153288#M8023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the first time you are seeing the format usage. Did the proc format ended well?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I will try (blind coding no validation) the first SQL.&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; start &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; *,ret_fund - market &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; excess_return, put(date,yearfy3.) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; cbhk_lgd.end_dataset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;order&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; isin,date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 15:39:30 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-05-12T15:39:30Z</dc:date>
    <item>
      <title>SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153280#M8015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset, and i calculated the sharpe ratio for 1 year. But now I also want it for 3 and 5 years. I should be something like this for 3 years:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1990&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1990 - 1992'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1991&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1990 - 1992'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1992&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1990 - 1992'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1993&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1993 - 1995'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1994&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1993 - 1995'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1195&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1993 - 1995'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1996&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1996 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1997&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1996 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1998&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1996 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1999&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2001'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2000&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2001'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2001&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2001'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2002&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2002 - 2004'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2003&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2002 - 2004'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2004&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2002 - 2004'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2005&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2005 - 2007'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2006&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2005 - 2007'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2007&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2005 - 2007'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2008&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2008 - 2011'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2009&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2008 - 2011'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2010&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2008 - 2011'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2011&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2012&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2013&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;And for 5 years:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1989&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1989 - 1993'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1990&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1989 - 1993'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1991&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1989 - 1993'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1992&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1989 - 1993'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1993&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1989 - 1993'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1994&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1994 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1195&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1994 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1996&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1994 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1997&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1994 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1998&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1994 - 1998'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;1999&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2003'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2000&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2003'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2001&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2003'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2002&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2003'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2003&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'1999 - 2003'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2004&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2004 - 2008'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2005&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2004 - 2008'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2006&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2004 - 2008'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2007&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2004 - 2008'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2008&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2004 - 2008'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2009&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2010&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2011&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2012&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; YEAR = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: teal; background: white;"&gt;2013&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; background: white;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; PERIOD_SLABBINCK = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: purple; background: white;"&gt;'2009 - 2013'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;So this are the subperiods I want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;My code for the 1 year calculation is this: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 11pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 11pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; start &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; *,ret_fund - market &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; excess_return,year(date) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; cbhk_lgd.end_dataset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;order&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; isin,date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; avg_excess_return &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; isin,jaar,avg(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; avg_excess_return,std(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;std_excess_return,avg(excess_return)/std(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; sharpe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; start&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt; isin,year;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 11pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;So my question is how do I calculate the above formula for 3 and 5 year subperiods?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 10:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153280#M8015</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-10T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153281#M8016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about CV (coefficient of variation )?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=have&amp;nbsp; &lt;STRONG&gt;cv&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P&gt;by isin &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;PERIOD_SLABBINCK&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;var &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 15px; background-color: #ffffff;"&gt;excess_return&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 13:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153281#M8016</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-10T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153282#M8017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use MLF multi-label formats with the formats being the recoding in 3 and 5 year periods?&lt;/P&gt;&lt;P&gt;Use the SAS procs supporting that. Advantage:&amp;nbsp; No need for data-transformations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 15:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153282#M8017</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-10T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153283#M8018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you use those multi-label formats? &lt;/P&gt;&lt;P&gt;I am rather a noob in SAS, my apologies &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what would the code be like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 09:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153283#M8018</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-11T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153284#M8019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are samples like &lt;A href="https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a001257552.htm" title="https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a001257552.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt; ( Example 4: Using Multilabel Formats ) This one based on ages where you are needed dates, the concept are similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formats are a unique feature in SAS that some others (Excel Oracle) have copied. &lt;A href="http://support.sas.com/resources/papers/proceedings11/271-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/271-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/271-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You do not change the data but you modify the way it is presented, there is no data change done. That is different to SQL as you would think in creating other datasets first.&lt;/P&gt;&lt;P&gt;The advantage of formats no additional creating of datasets needed.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The analytic processing with SAS-procs is normally supporting the formatted value. Some SAS Procs are supporting multi-label.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 15:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153284#M8019</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-11T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153285#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to fit the code into my original code, but it doesn't work...&lt;/P&gt;&lt;P&gt;How do I fit in the proc format into my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; start &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; *,ret_fund - market &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; excess_return,year(date) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; cbhk_lgd.end_dataset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;order&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; avg_excess_return &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,jaar,avg(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; avg_excess_return,std(excess_return)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;std_excess_return,avg(excess_return)/std(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; sharpe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; start&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,year;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 12:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153285#M8020</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-12T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153286#M8021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As start defining the formats ( I am not able to check as no access to SAS at the moment ).&lt;/P&gt;&lt;P&gt;it is converting dates to strings.&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780334.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780334.htm"&gt;SAS(R) 9.2 Language Reference: Concepts, Second Edition&lt;/A&gt; (date constants).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a put function you can use it within SQL for the conversion like: &lt;A href="http://support.sas.com/documentation/cdl/en/indbug/65980/HTML/default/viewer.htm#p102sbjl1vs7qzn1qkl46of25nto.htm" title="http://support.sas.com/documentation/cdl/en/indbug/65980/HTML/default/viewer.htm#p102sbjl1vs7qzn1qkl46of25nto.htm"&gt;SAS(R) 9.3 In-Database Products: User's Guide, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The yearf3. and yearf5. formats can be used in that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using proc tabulate/report you can use a lot of statistics direct to a report. &lt;A href="https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146762.htm" title="https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146762.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt; (proc tabulate)&amp;nbsp; &lt;/P&gt;&lt;P&gt;mean (avg) stddev are basic ones. You need to work on your data using the samples and see what happens. &lt;/P&gt;&lt;P&gt;The yearfmt. MLF can be used with these procedures. Immediate giving the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; value yearfmt (multilabel notsorted)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1990'd - '31dec1992'd&amp;nbsp; = '1990 - 1992' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1993'd - '31dec1994'd&amp;nbsp; = '1993 - 1995'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1996'd - '31dec1998'd&amp;nbsp; = '1996 - 1998'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1999'd - '31dec2001'd&amp;nbsp; = '1999 - 2001'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2002'd - '31dec2004'd&amp;nbsp; = '2002 - 2004'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2005'd - '31dec2007'd&amp;nbsp; = '2005 - 2007'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2008'd - '31dec2011'd&amp;nbsp; = '2008 - 2011'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2009'd - '31dec2013'd&amp;nbsp; = '2009 - 2013'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1989'd - '31dec1993'd&amp;nbsp; = '1989 - 1993'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1994'd - '31dec1998'd&amp;nbsp; = '1994 - 1998'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1999'd - '31dec2003'd&amp;nbsp; = '1999 - 2003'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2004'd - '31dec2008'd&amp;nbsp; = '2004 - 2008'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2009'd - '31dec2013'd&amp;nbsp; = '2009 - 2013'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value yearfy3 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1990'd - '31dec1992'd&amp;nbsp; = '1990 - 1992' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1993'd - '31dec1994'd&amp;nbsp; = '1993 - 1995'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1996'd - '31dec1998'd&amp;nbsp; = '1996 - 1998'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1999'd - '31dec2001'd&amp;nbsp; = '1999 - 2001'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2002'd - '31dec2004'd&amp;nbsp; = '2002 - 2004'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2005'd - '31dec2007'd&amp;nbsp; = '2005 - 2007'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2008'd - '31dec2011'd&amp;nbsp; = '2008 - 2011'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2009'd - '31dec2013'd&amp;nbsp; = '2009 - 2013'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value yearfy5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1989'd - '31dec1993'd&amp;nbsp; = '1989 - 1993'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1994'd - '31dec1998'd&amp;nbsp; = '1994 - 1998'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1999'd - '31dec2003'd&amp;nbsp; = '1999 - 2003'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2004'd - '31dec2008'd&amp;nbsp; = '2004 - 2008'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2009'd - '31dec2013'd&amp;nbsp; = '2009 - 2013'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt; run;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 14:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153286#M8021</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-12T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153287#M8022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If if put this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc format;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;value yearfy3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1990'd - '31dec1992'd&amp;nbsp; = '1990 - 1992'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1993'd - '31dec1994'd&amp;nbsp; = '1993 - 1995'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1996'd - '31dec1998'd&amp;nbsp; = '1996 - 1998'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan1999'd - '31dec2001'd&amp;nbsp; = '1999 - 2001'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2002'd - '31dec2004'd&amp;nbsp; = '2002 - 2004'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2005'd - '31dec2007'd&amp;nbsp; = '2005 - 2007'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2008'd - '31dec2011'd&amp;nbsp; = '2008 - 2011'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01jan2009'd - '31dec2013'd&amp;nbsp; = '2009 - 2013'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run; &lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; start &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; *,ret_fund - market &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; excess_return,year(date) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; cbhk_lgd.end_dataset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;order&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: navy;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; avg_excess_return &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,jaar,avg(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;avg_excess_return,std(excess_return)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;std_excess_return,avg(excess_return)/std(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; sharpe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; start&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit;"&gt; isin,year;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Calibri; color: #444444; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;Nothing happens...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153287#M8022</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-12T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153288#M8023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the first time you are seeing the format usage. Did the proc format ended well?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I will try (blind coding no validation) the first SQL.&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; start &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; *,ret_fund - market &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; excess_return, put(date,yearfy3.) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; cbhk_lgd.end_dataset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;order&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; isin,date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #444444; font-family: Calibri; font-size: 16px; background-color: #ffffff;"&gt;&lt;SPAN style="color: navy; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153288#M8023</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-12T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153289#M8024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, that worked!&lt;/P&gt;&lt;P&gt;I am not such a great talent in SAS &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153289#M8024</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-13T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153290#M8025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked, but I think there is still a mistake in it.&lt;/P&gt;&lt;P&gt;If I put the code like that, than I still get the sharpe ratio of each fund per day. The only new thing is that there is a column 'year' with the correct years. &lt;/P&gt;&lt;P&gt;So nothing changed :smileysilly:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 16:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153290#M8025</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-13T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153291#M8026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bjinge, I only checked adviced on the grouping of years. Ok, that is working. &lt;BR /&gt;What is Sharpe ratio calculation and how did you do that? &lt;A href="http://en.wikipedia.org/wiki/Sharpe_ratio" title="http://en.wikipedia.org/wiki/Sharpe_ratio"&gt;Sharpe ratio - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;select&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; isin,jaar,avg(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;avg_excess_return, std(excess_return)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;std_excess_return, avg(excess_return)/std(excess_return) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN lang="en-US" style="font-family: inherit; font-size: 11pt; font-style: inherit; font-weight: inherit;"&gt; sharpe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Nice ...&amp;nbsp; uhhhhh you are using jaar? That is Dutch. Should it not be year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Are we doing some act? (De lamme en de blinde) You are having access to SAS Needin Knowledge in using, I have no access to SAS knowing how to use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;The sharp ratio is expecting some intervals. As the original data is not changed having the same number of records the calculations are based on those detailed-records.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;Is this what you want? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153291#M8026</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-13T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  1year to 3/5 years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153292#M8027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculations of the sharpe ratio is correct, I checked that before.&lt;/P&gt;&lt;P&gt;And indeed that should have been year, but I changed that in the original code, but nothing new happened.&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;"The sharp ratio is expecting some intervals. As the original data is not changed having the same number of records the calculations are based on those detailed-records.&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;Is this what you want? "&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;This is exactly what I am looking for... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN lang="en-US" style="font-size: 11pt;"&gt;And about the 'lamme en de blinde', I think I am both of them &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 07:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-1year-to-3-5-years/m-p/153292#M8027</guid>
      <dc:creator>bjinge</dc:creator>
      <dc:date>2014-05-14T07:06:52Z</dc:date>
    </item>
  </channel>
</rss>

