<?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 wide to tall, numbers lose formatting in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707092#M79979</link>
    <description>&lt;P&gt;Add a format statement to Proc Report or override separately for each variable in the Define statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that all of the variables in the wide format did not have the same format.&lt;/P&gt;
&lt;P&gt;I just did a quick test and when all the variables have the same format the result has that format but if they have mixed formats then the transposed end up with BEST format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS variables have the format, not individual cell values like spreadsheets. So only one format can be applied. I suspect the SAS developers chose to use a BEST format when there is a conflict so something appears instead of the things that might happen trying to display a large currency value with a date format...&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 21:27:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-18T21:27:13Z</dc:date>
    <item>
      <title>proc transpose wide to tall, numbers lose formatting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707083#M79978</link>
      <description>&lt;P&gt;I have a simple transpose from wide with 11 columns to tall with 3 columns.&amp;nbsp; When the data is wide the numbers are formatted to show commas, when tall they lose the formatting.&amp;nbsp; Is there anyway in the proc to format the columns?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm following up with a proc report, so if I can format there I'll be happy to do it there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 21:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707083#M79978</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2020-12-18T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose wide to tall, numbers lose formatting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707092#M79979</link>
      <description>&lt;P&gt;Add a format statement to Proc Report or override separately for each variable in the Define statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that all of the variables in the wide format did not have the same format.&lt;/P&gt;
&lt;P&gt;I just did a quick test and when all the variables have the same format the result has that format but if they have mixed formats then the transposed end up with BEST format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS variables have the format, not individual cell values like spreadsheets. So only one format can be applied. I suspect the SAS developers chose to use a BEST format when there is a conflict so something appears instead of the things that might happen trying to display a large currency value with a date format...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 21:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707092#M79979</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-18T21:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose wide to tall, numbers lose formatting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707095#M79980</link>
      <description>&lt;P&gt;Spot on, I didn't realize I missed one of the (pre transpose) columns in formatting.&amp;nbsp; Once I fixed that it's perfect, and the formatting held through the proc report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great weekend, Happy Holidays, stay healthy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 21:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-wide-to-tall-numbers-lose-formatting/m-p/707095#M79980</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2020-12-18T21:31:23Z</dc:date>
    </item>
  </channel>
</rss>

