<?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: Proc Freq and Proc Transpose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650125#M194964</link>
    <description>&lt;P&gt;Did you run the code? It still answers your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319889"&gt;@Anoruo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Thanks for your response . It is not actually for display , i want to use it for some computations and i am required to use Proc Transpose. Thanks for your quick response.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 02:07:09 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-05-24T02:07:09Z</dc:date>
    <item>
      <title>Proc Freq and Proc Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650064#M194921</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please i intend to use the output from the proc freq procedure to execute the Proc Transpose&amp;nbsp; , however the Out=AA&amp;nbsp; dataset displays only the Country by Trt01p; So when i use the AA dataset to execute the Proc Transpose , the variables Sex , Race and Country are all missing .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question : How do i make Sex, Race and Country appear in the AA dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq data=B ;&lt;BR /&gt;Table SEX RACE ETHNIC COUNTRY / out=AA ;&lt;BR /&gt;BY Trt01p ;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*Step 3*/&lt;/P&gt;&lt;P&gt;Proc Transpose data=AA ;&lt;BR /&gt;ID Trt01P ;&lt;BR /&gt;BY SEX RACE ETHNIC COUNTRY ;&lt;BR /&gt;VAR Count;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the dataset&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 01:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650064#M194921</guid>
      <dc:creator>Anoruo</dc:creator>
      <dc:date>2020-05-23T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq and Proc Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650065#M194922</link>
      <description>&lt;P&gt;Try my example here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/e0903d269d4a71316a4e" target="_blank"&gt;https://gist.github.com/statgeek/e0903d269d4a71316a4e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is for display, you can also consider PROC TABULATE as an option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319889"&gt;@Anoruo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please i intend to use the output from the proc freq procedure to execute the Proc Transpose&amp;nbsp; , however the Out=AA&amp;nbsp; dataset displays only the Country by Trt01p; So when i use the AA dataset to execute the Proc Transpose , the variables Sex , Race and Country are all missing .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question : How do i make Sex, Race and Country appear in the AA dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=B ;&lt;BR /&gt;Table SEX RACE ETHNIC COUNTRY / out=AA ;&lt;BR /&gt;BY Trt01p ;&lt;BR /&gt;Run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/*Step 3*/&lt;/P&gt;
&lt;P&gt;Proc Transpose data=AA ;&lt;BR /&gt;ID Trt01P ;&lt;BR /&gt;BY SEX RACE ETHNIC COUNTRY ;&lt;BR /&gt;VAR Count;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 02:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650065#M194922</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-23T02:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq and Proc Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650066#M194923</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Thanks for your response . It is not actually for display , i want to use it for some computations and i am required to use Proc Transpose. Thanks for your quick response.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 02:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650066#M194923</guid>
      <dc:creator>Anoruo</dc:creator>
      <dc:date>2020-05-23T02:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq and Proc Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650119#M194958</link>
      <description>&lt;P&gt;Maybe all you need is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Proc freq data=B ;
Table SEX*RACE*ETHNIC*COUNTRY / out=AA ;
BY Trt01p ;
Run;

proc sort data=aa; by SEX RACE ETHNIC COUNTRY; run;

/*Step 3*/

Proc Transpose data=AA out=bb;
ID Trt01P ;
BY SEX RACE ETHNIC COUNTRY ;
VAR Count;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 22:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650119#M194958</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-05-23T22:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq and Proc Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650125#M194964</link>
      <description>&lt;P&gt;Did you run the code? It still answers your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319889"&gt;@Anoruo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Thanks for your response . It is not actually for display , i want to use it for some computations and i am required to use Proc Transpose. Thanks for your quick response.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 02:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-and-Proc-Transpose/m-p/650125#M194964</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-24T02:07:09Z</dc:date>
    </item>
  </channel>
</rss>

