<?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 Alternative of group by and first dot and last dot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505566#M135398</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have two questions to ask.&lt;BR /&gt;1 is there any alternative if firstdot and last dot? Not using group by in proc sql&lt;BR /&gt;&lt;BR /&gt;2 How can we transpose a data set without using Proc transpose?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Oct 2018 14:16:28 GMT</pubDate>
    <dc:creator>Best</dc:creator>
    <dc:date>2018-10-18T14:16:28Z</dc:date>
    <item>
      <title>Alternative of group by and first dot and last dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505566#M135398</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have two questions to ask.&lt;BR /&gt;1 is there any alternative if firstdot and last dot? Not using group by in proc sql&lt;BR /&gt;&lt;BR /&gt;2 How can we transpose a data set without using Proc transpose?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505566#M135398</guid>
      <dc:creator>Best</dc:creator>
      <dc:date>2018-10-18T14:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative of group by and first dot and last dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505573#M135403</link>
      <description>&lt;P&gt;1) no. If you need them, you need them. For clarity, post the code you want an alternative for.&lt;/P&gt;
&lt;P&gt;2) with lots of data step and macro coding, as you need to have dynamic code (variable names) depending on the data.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505573#M135403</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-18T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative of group by and first dot and last dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505576#M135406</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237014"&gt;@Best&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have two questions to ask.&lt;BR /&gt;1 is there any alternative if firstdot and last dot? Not using group by in proc sql&lt;BR /&gt;&lt;BR /&gt;2 How can we transpose a data set without using Proc transpose?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1) A concrete example of what you are attempting would help. Some techniques might work for some cases but not others because this is very likely to be very dependent on data and result needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) A data step relatively easy will transpose from wide to long&lt;/P&gt;
&lt;PRE&gt;data have;
input a $5.  var1 var2 var3;
cards;
19701 8798  123 456
19701 5489  789 333
18054 3578  908 222
;
Run;

data trans;
   set have;
   array v var1-var3;
   do i= 1 to dim(v);
      tranval= v[i];
      output;
   end;
   keep a tranval;
run;&lt;/PRE&gt;
&lt;P&gt;from long to wide takes a few more steps to determine max number of resulting variables, create the appropriate variable names, Retain statement and conditional output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-of-group-by-and-first-dot-and-last-dot/m-p/505576#M135406</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-18T14:25:24Z</dc:date>
    </item>
  </channel>
</rss>

