<?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 transpose blanks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-blanks/m-p/849710#M335891</link>
    <description>&lt;P&gt;Obviously, there are way to do this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if your end goal is to simply create a frequency table with percentages, then there are better ways to go.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 18:11:28 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-12-14T18:11:28Z</dc:date>
    <item>
      <title>proc transpose blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-blanks/m-p/849708#M335889</link>
      <description>&lt;P&gt;This might be a simple question but&amp;nbsp;I would to replace the blank with a zero, how can I do that? The picture is the data after transposed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data Merged_CP (keep= DoseC_P EXDSTXT SEX);
set listing2_1;
by EXDSTXT;
retain COUNT PERCENT EXDSTXT SEX;
length DoseC_P $20;
DoseC_P= strip(put(COUNT,comma12.)||''|| put(-PERCENT/100,percent7.1));
run;
proc sort data=Merged_CP;
by SEX;
run;
proc transpose data=Merged_CP out=EXDM (drop=_NAME_);
by SEX;
id EXDSTXT;
var DoseC_P;
run;
proc print data=EXDM;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ayooo1_0-1671041135114.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78547i080C89BB8635E4FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ayooo1_0-1671041135114.png" alt="Ayooo1_0-1671041135114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 18:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-blanks/m-p/849708#M335889</guid>
      <dc:creator>Ayooo1</dc:creator>
      <dc:date>2022-12-14T18:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-blanks/m-p/849710#M335891</link>
      <description>&lt;P&gt;Obviously, there are way to do this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if your end goal is to simply create a frequency table with percentages, then there are better ways to go.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 18:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-blanks/m-p/849710#M335891</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-12-14T18:11:28Z</dc:date>
    </item>
  </channel>
</rss>

