<?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: How to get desired output in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620754#M18718</link>
    <description>Yes</description>
    <pubDate>Wed, 29 Jan 2020 06:37:42 GMT</pubDate>
    <dc:creator>sasuser123123</dc:creator>
    <dc:date>2020-01-29T06:37:42Z</dc:date>
    <item>
      <title>How to get desired output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620752#M18716</link>
      <description>Hello!&lt;BR /&gt;I've data like&lt;BR /&gt;&lt;BR /&gt;Data new;&lt;BR /&gt;Input Country$ Name$ Tr1 Tr2 Tot;&lt;BR /&gt;Cards;&lt;BR /&gt;EUR Count 3 6 9&lt;BR /&gt;EUR Percent 15 30 45&lt;BR /&gt;NOA Count 7 4 11&lt;BR /&gt;NOA Percent 35 20 55&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;So Need output like....&lt;BR /&gt;&lt;BR /&gt;COUNTRY TR1 TR2 TOT&lt;BR /&gt;EUR 3(15) 6(30) 9(45)&lt;BR /&gt;NOA 7(35) 4(20) 11(55)&lt;BR /&gt;&lt;BR /&gt;Could anyone please help me that how to do this task..&lt;BR /&gt;&lt;BR /&gt;Thank you...&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620752#M18716</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2020-01-29T06:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get desired output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620753#M18717</link>
      <description>&lt;P&gt;Why do you want to do this? For reporting purposes?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620753#M18717</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-01-29T06:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get desired output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620754#M18718</link>
      <description>Yes</description>
      <pubDate>Wed, 29 Jan 2020 06:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620754#M18718</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2020-01-29T06:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get desired output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620763#M18719</link>
      <description>&lt;P&gt;A first step to create the concatenated variables can be this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select
  a.country,
  cats(a.tr1,'(',b.tr1,')') as tr1,
  cats(a.tr2,'(',b.tr2,')') as tr2,
  cats(a.tot,'(',b.tot,')') as tot
from
  (select country,tr1,tr2,tot from new where name ='Count') a
inner join
  (select country,tr1,tr2,tot from new where name ='Percent') b
on a.country = b.country;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 07:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620763#M18719</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-29T07:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get desired output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620870#M18720</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282134"&gt;@sasuser123123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello!&lt;BR /&gt;I've data like&lt;BR /&gt;&lt;BR /&gt;Data new;&lt;BR /&gt;Input Country$ Name$ Tr1 Tr2 Tot;&lt;BR /&gt;Cards;&lt;BR /&gt;EUR Count 3 6 9&lt;BR /&gt;EUR Percent 15 30 45&lt;BR /&gt;NOA Count 7 4 11&lt;BR /&gt;NOA Percent 35 20 55&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;So Need output like....&lt;BR /&gt;&lt;BR /&gt;COUNTRY TR1 TR2 TOT&lt;BR /&gt;EUR 3(15) 6(30) 9(45)&lt;BR /&gt;NOA 7(35) 4(20) 11(55)&lt;BR /&gt;&lt;BR /&gt;Could anyone please help me that how to do this task..&lt;BR /&gt;&lt;BR /&gt;Thank you...&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that data structure is the result of summarizing something it might be better off to go back to a raw form of the data and create the report you want directly. If this is the case can you provide an example of the raw data before that summary?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-get-desired-output/m-p/620870#M18720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-29T16:29:34Z</dc:date>
    </item>
  </channel>
</rss>

