<?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: entry exit date codes needed for stocks buy and sell in quarterly data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888907#M351180</link>
    <description>&lt;P&gt;I realize you are new here, but we cannot write code based on data in a screen capture. We have to work from SAS data sets, not Excel files and not screen captures. To provide data, we need it to be provided as working SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;) and not in any other form. We don't need the entire data set, but enough so we can write a program and obtain the results you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't understand your explanation. Please provide the desired output, and write the explanation so we can see examples of how you go from the input data to the desired output.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 10:17:39 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-08-11T10:17:39Z</dc:date>
    <item>
      <title>Codes for entry and exit of stocks in each quarter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888832#M351151</link>
      <description>&lt;P&gt;Hi, I wanted to find the entry and exit dates of stocks in quarterly data by a specific firm during some years. for example:&lt;/P&gt;&lt;P&gt;if a firm buys apple stock in quarter one and then in quarter 2. This is visible with dates in both quarters but if it sells it, it wont be in 3rd quarter. Now I want code which can show dates in which it enters and on which it exits.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 18:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888832#M351151</guid>
      <dc:creator>Fatima123456</dc:creator>
      <dc:date>2023-08-10T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Codes for entry and exit of stocks in each quarter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888859#M351153</link>
      <description>&lt;P&gt;Welcome to the communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I moved this to the Programming community, since it's got nothing to do with the administration of the SAS software itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please supply usable example data (ideally in a DATA step with DATALINES), and the expected outcome.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 21:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888859#M351153</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-10T21:04:43Z</dc:date>
    </item>
    <item>
      <title>entry exit date codes needed for stocks buy and sell in quarterly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888899#M351179</link>
      <description>&lt;P&gt;hi, I am trying to fetch the dates of stocks entry and exit in each quarter (as its quarterly data). e.g. a firm buy some stocks and it shows data of each quarter where only buy stocks are present. Now I want to get the column of change in those stocks investment market value in each quarter and dates where they are first time bought and where they exit(they are no more in the list of stocks in a quarter). Plus a column "if stock is bought then 1 otherwise zero".When they are no longer in next quarter it shows they are sold. so a column "if it is sold then 1 otherwise zero" I am attaching the screenshot of example. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Riccc.png" style="width: 755px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86661i9915861563AA5DA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Riccc.png" alt="Riccc.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 09:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888899#M351179</guid>
      <dc:creator>Fatima123456</dc:creator>
      <dc:date>2023-08-11T09:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: entry exit date codes needed for stocks buy and sell in quarterly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888907#M351180</link>
      <description>&lt;P&gt;I realize you are new here, but we cannot write code based on data in a screen capture. We have to work from SAS data sets, not Excel files and not screen captures. To provide data, we need it to be provided as working SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;) and not in any other form. We don't need the entire data set, but enough so we can write a program and obtain the results you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't understand your explanation. Please provide the desired output, and write the explanation so we can see examples of how you go from the input data to the desired output.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 10:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888907#M351180</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-11T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: entry exit date codes needed for stocks buy and sell in quarterly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888910#M351181</link>
      <description>Yes I am novice. Thank you so much for your guidance, I will follow these instructions.</description>
      <pubDate>Fri, 11 Aug 2023 10:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888910#M351181</guid>
      <dc:creator>Fatima123456</dc:creator>
      <dc:date>2023-08-11T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: entry exit date codes needed for stocks buy and sell in quarterly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888936#M351182</link>
      <description>&lt;P&gt;Please do not start new threads for the same subject. Keep your replies and posts with the requested details in here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Codes-for-entry-and-exit-of-stocks-in-each-quarter/m-p/888936#M351182</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-11T13:28:36Z</dc:date>
    </item>
  </channel>
</rss>

