<?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 Two formats in Proc Report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Two-formats-in-Proc-Report/m-p/371876#M65158</link>
    <description>&lt;P&gt;Is there a way to use a custom format to order and a compute block to determine two different display formats e.g. percent and comma?&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 report data=combined;&lt;BR /&gt;format displayNum2 courseOfferingformatValue.; /*this line does not take effect*/&lt;BR /&gt;column row_label academic_period, displayNum2;&lt;BR /&gt;define row_label / group '' order = internal;&lt;BR /&gt;define academic_period / across '';&lt;BR /&gt;define displayNum2 / analysis '';&lt;BR /&gt;compute displayNum2;&lt;BR /&gt;if row_label='Percent of Sections Cancelled'&amp;nbsp;&lt;BR /&gt;then call define(_col_,'format','percent8.2');&lt;BR /&gt;else call define(_col_, 'format','comma10.');&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 19:24:29 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2017-06-29T19:24:29Z</dc:date>
    <item>
      <title>Two formats in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-formats-in-Proc-Report/m-p/371876#M65158</link>
      <description>&lt;P&gt;Is there a way to use a custom format to order and a compute block to determine two different display formats e.g. percent and comma?&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 report data=combined;&lt;BR /&gt;format displayNum2 courseOfferingformatValue.; /*this line does not take effect*/&lt;BR /&gt;column row_label academic_period, displayNum2;&lt;BR /&gt;define row_label / group '' order = internal;&lt;BR /&gt;define academic_period / across '';&lt;BR /&gt;define displayNum2 / analysis '';&lt;BR /&gt;compute displayNum2;&lt;BR /&gt;if row_label='Percent of Sections Cancelled'&amp;nbsp;&lt;BR /&gt;then call define(_col_,'format','percent8.2');&lt;BR /&gt;else call define(_col_, 'format','comma10.');&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-formats-in-Proc-Report/m-p/371876#M65158</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-06-29T19:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Two formats in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-formats-in-Proc-Report/m-p/371878#M65159</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way I have seen this applied, was in this SGF 2013 paper &lt;A href="http://support.sas.com/resources/papers/proceedings13/027-2013.pdf" target="_self"&gt;Census Retires Proc Computab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;call define(_col_,"style","....") is used as the output is sent to Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No sure if this would be applicable to your ODS destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-formats-in-Proc-Report/m-p/371878#M65159</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2017-06-29T19:36:12Z</dc:date>
    </item>
  </channel>
</rss>

