<?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 proc transpose want to keep format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297368#M62425</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question .&lt;/P&gt;&lt;P&gt;I have one dataset with numeric format. I use transpose and the format have not same as original.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data input;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set data_plot;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format all_cid pass fail comma22.0 fail_rate goal comma22.2; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;label fail_rate = Fail Rate(%);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label all_cid = Total;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label pass = Pass;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label fail = Fail;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label goal = goal;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc transpose data=input&amp;nbsp;out=output&amp;nbsp;(drop = _NAME_);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id xaxis ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var all_cid pass fail fail_rate goal;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attach my input file and output file&lt;STRONG&gt; which i want to see&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the current result which is wrong&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4878i1DE2FEA0B239043D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ScreenHunter_84 Sep. 09 19.58.jpg" title="ScreenHunter_84 Sep. 09 19.58.jpg" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 12:00:32 GMT</pubDate>
    <dc:creator>kritima</dc:creator>
    <dc:date>2016-09-09T12:00:32Z</dc:date>
    <item>
      <title>proc transpose want to keep format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297368#M62425</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question .&lt;/P&gt;&lt;P&gt;I have one dataset with numeric format. I use transpose and the format have not same as original.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data input;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set data_plot;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format all_cid pass fail comma22.0 fail_rate goal comma22.2; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;label fail_rate = Fail Rate(%);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label all_cid = Total;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label pass = Pass;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label fail = Fail;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;label goal = goal;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc transpose data=input&amp;nbsp;out=output&amp;nbsp;(drop = _NAME_);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id xaxis ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var all_cid pass fail fail_rate goal;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attach my input file and output file&lt;STRONG&gt; which i want to see&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the current result which is wrong&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4878i1DE2FEA0B239043D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ScreenHunter_84 Sep. 09 19.58.jpg" title="ScreenHunter_84 Sep. 09 19.58.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297368#M62425</guid>
      <dc:creator>kritima</dc:creator>
      <dc:date>2016-09-09T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose want to keep format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297372#M62426</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;/U&gt;A column in SAS can only have one format, numeric or percent.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can convert the values or character using a PUT statement and apply the format of choice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297372#M62426</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-09T12:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose want to keep format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297373#M62427</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;/U&gt;A column in SAS can only have one format, numeric or percent.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can convert the values or character using a PUT statement and apply the format of choice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297373#M62427</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-09T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose want to keep format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297529#M62493</link>
      <description>Or you could use PROC REPORT + CALL DEFINE()</description>
      <pubDate>Sat, 10 Sep 2016 03:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-want-to-keep-format/m-p/297529#M62493</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-10T03:26:57Z</dc:date>
    </item>
  </channel>
</rss>

