<?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: Forming Portfolios in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254366#M309820</link>
    <description>&lt;P&gt;&amp;nbsp;I have something like this. For instance;&lt;/P&gt;&lt;P&gt;Code &amp;nbsp; Mainstrategy &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aum &amp;nbsp; &amp;nbsp; &amp;nbsp;Lockup &amp;nbsp;....&lt;/P&gt;&lt;P&gt;T112 &amp;nbsp; Emerging market &amp;nbsp;12343 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;T119 &amp;nbsp; Event driven &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23432 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;T564 &amp;nbsp; &amp;nbsp;CTA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;45667 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to separate this data set into two based on the lockup. So one will be for lockup=1 and the other for lockup=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 22:49:53 GMT</pubDate>
    <dc:creator>bukky09</dc:creator>
    <dc:date>2016-03-03T22:49:53Z</dc:date>
    <item>
      <title>Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254316#M309816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having some difficulty trying to ceate portfolios in sas. So I have a funds data and i ant to ceate 3 separate portfolios based on&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&lt;SPAN&gt;funds with no lockup (lockup=0), and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) funds with lockup (lockup &amp;gt;0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254316#M309816</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-03T20:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254332#M309817</link>
      <description>&lt;P&gt;We need more details to provide much help.&lt;/P&gt;
&lt;P&gt;What does your current data look like?&lt;/P&gt;
&lt;P&gt;What do you need the result to look like?&lt;/P&gt;
&lt;P&gt;You only mention two rules, where would the third group come from?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254332#M309817</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-03T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254349#M309818</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data set on hedge funds (a combination of the reuturns and the characteristics)&lt;/P&gt;&lt;P&gt;I meant to say 2 instead of 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am trying to form to different portfolios from the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first portfolio will containe funds with lock up&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the second will contain funds with no lock up&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254349#M309818</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-03T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254365#M309819</link>
      <description>&lt;P&gt;"Portfolio" is not a native SAS term, so you need to express it in terms SAS can understand. Do you want to add a variable to a dataset to indicate which "portfolio" a record belongs to?&lt;/P&gt;
&lt;P&gt;Do you want to separate a single dataset into two datasets?&lt;/P&gt;
&lt;P&gt;Do you have a variable named LOCKUP in the data? If not, how is "lock up" determined from values of one or more variables in the data?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254365#M309819</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-03T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254366#M309820</link>
      <description>&lt;P&gt;&amp;nbsp;I have something like this. For instance;&lt;/P&gt;&lt;P&gt;Code &amp;nbsp; Mainstrategy &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aum &amp;nbsp; &amp;nbsp; &amp;nbsp;Lockup &amp;nbsp;....&lt;/P&gt;&lt;P&gt;T112 &amp;nbsp; Emerging market &amp;nbsp;12343 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;T119 &amp;nbsp; Event driven &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23432 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;T564 &amp;nbsp; &amp;nbsp;CTA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;45667 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to separate this data set into two based on the lockup. So one will be for lockup=1 and the other for lockup=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254366#M309820</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-03T22:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254367#M309821</link>
      <description>So I have provision for lockup already</description>
      <pubDate>Thu, 03 Mar 2016 22:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254367#M309821</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-03T22:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254378#M309822</link>
      <description>&lt;P&gt;Assuming the name of your existing dataset is HAVE, you can do something similar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Portfolio_1 Portfolio_2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if lockup=0 then output Portfolio_1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; else output Portfolio_2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But with that variable lockup you could much analysis leaving the data in set, sort by the lockup variable and then process with BY statements using the lockup variable.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254378#M309822</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-03T23:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254455#M309823</link>
      <description>&lt;P&gt;Thank you very much. This was helpful. I am pretty new at this.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolios/m-p/254455#M309823</guid>
      <dc:creator>bukky09</dc:creator>
      <dc:date>2016-03-04T14:14:25Z</dc:date>
    </item>
  </channel>
</rss>

