<?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 SAS Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140687#M261512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 2 data sets&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input var $;&lt;/P&gt;&lt;P&gt;a1&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;a3&lt;/P&gt;&lt;P&gt;a4;run;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;input var $&lt;/P&gt;&lt;P&gt;b1&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;b3&lt;/P&gt;&lt;P&gt;b4&lt;/P&gt;&lt;P&gt;;run;&lt;/P&gt;&lt;P&gt;i need to output as &lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;a1&lt;/P&gt;&lt;P&gt;b1&lt;/P&gt;&lt;P&gt;a2&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;a3&lt;/P&gt;&lt;P&gt;b3&lt;/P&gt;&lt;P&gt;a4&lt;/P&gt;&lt;P&gt;b4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Need Second transaction of guest using retain statement by ranking the dat&lt;/P&gt;&lt;P&gt;guestid transid amount transdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 10:38:54 GMT</pubDate>
    <dc:creator>NagendraBS</dc:creator>
    <dc:date>2014-12-08T10:38:54Z</dc:date>
    <item>
      <title>SAS Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140687#M261512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 2 data sets&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input var $;&lt;/P&gt;&lt;P&gt;a1&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;a3&lt;/P&gt;&lt;P&gt;a4;run;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;input var $&lt;/P&gt;&lt;P&gt;b1&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;b3&lt;/P&gt;&lt;P&gt;b4&lt;/P&gt;&lt;P&gt;;run;&lt;/P&gt;&lt;P&gt;i need to output as &lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;a1&lt;/P&gt;&lt;P&gt;b1&lt;/P&gt;&lt;P&gt;a2&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;a3&lt;/P&gt;&lt;P&gt;b3&lt;/P&gt;&lt;P&gt;a4&lt;/P&gt;&lt;P&gt;b4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Need Second transaction of guest using retain statement by ranking the dat&lt;/P&gt;&lt;P&gt;guestid transid amount transdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 10:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140687#M261512</guid>
      <dc:creator>NagendraBS</dc:creator>
      <dc:date>2014-12-08T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140688#M261513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your first question: If below is a valid solution will depend on how representative your sample data is. It requires that you have the same number of observations in both source data sets (test, test1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your second question: I believe there is a lot of information missing for us understand the problem and provide an answer. For formulating a proper question I suggest you describe the actual problem and desired result instead of already asking a question with the solution included "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Need Second transaction of guest using retain statement by ranking the dat&lt;/SPAN&gt;". Here better tell us what you have (provide representative sample data), describe the problem and then show us how the desired result should look like.&lt;/P&gt;&lt;P&gt;If you have already some - may be not working - code developed then post this as well. Your code helps us to understand on what level of SAS coding skills you are so we can provide a solution which will be helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;a1&lt;/P&gt;&lt;P&gt;a2&lt;/P&gt;&lt;P&gt;a3&lt;/P&gt;&lt;P&gt;a4&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;b1&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;b3&lt;/P&gt;&lt;P&gt;b4&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 11:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140688#M261513</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-12-08T11:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140689#M261514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have transaction details of guest users &lt;/P&gt;&lt;P&gt;guestid transid amount &lt;/P&gt;&lt;P&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11021&amp;nbsp;&amp;nbsp; 566&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15021&amp;nbsp;&amp;nbsp; 999&lt;/P&gt;&lt;P&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13260&amp;nbsp;&amp;nbsp; 499&lt;/P&gt;&lt;P&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15420&amp;nbsp;&amp;nbsp; 645&lt;/P&gt;&lt;P&gt;102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16450&amp;nbsp; 533&lt;/P&gt;&lt;P&gt;102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17894&amp;nbsp;&amp;nbsp; 489&lt;/P&gt;&lt;P&gt;103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14564 154&lt;/P&gt;&lt;P&gt;103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14523&amp;nbsp;&amp;nbsp; 539&lt;/P&gt;&lt;P&gt;SO here i need the guest second transaction details transaction id vary's but not guestid . so using retain statement can we do this or any other methods to finish this task. Please query it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance Nagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 11:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140689#M261514</guid>
      <dc:creator>NagendraBS</dc:creator>
      <dc:date>2014-12-08T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140690#M261515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="819023" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You're throwing a bunch of data at us (I would appreciate if you would post a tested data step creating the sample data set so we don't have to do this) and I don't doubt that you fully understand what you want to achieve. Assume we don't. So how should the expected result look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 11:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Question/m-p/140690#M261515</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-12-08T11:28:48Z</dc:date>
    </item>
  </channel>
</rss>

