<?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: Formatting missing values in PROC REPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479914#M71507</link>
    <description>&lt;P&gt;Missing values for Paid should look like $0.00 and missing values for Percent should look like 0.0%.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 15:36:03 GMT</pubDate>
    <dc:creator>rlafond</dc:creator>
    <dc:date>2018-07-20T15:36:03Z</dc:date>
    <item>
      <title>Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479869#M71502</link>
      <description>&lt;P&gt;I'm using the below code to create a report. The output looks great, but I need to apply formatting to my missing values, specifically for Paid and Percent. The non-zero data was formatted earlier during a SQL procedure. So far I've tried restating the format with DEFINE and also with FORMAT after define - neither worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;escapechar&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"^"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nodate&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;label&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;orientation&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=portrait &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nobyline&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_all_&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pdf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\TEST.pdf"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=htmlblue;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;REPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=WORK.STEP2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;COLUMN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TT_Description NetworkType, (Claims Paid Percent);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TT_Description / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Treatment Type"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; NetworkType / &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;" "&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;across&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Claims / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sum&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Paid / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sum&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Percent / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sum&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ODS&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;PDF&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CLOSE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479869#M71502</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2018-07-20T14:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479875#M71503</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183090"&gt;@rlafond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm using the below code to create a report. The output looks great, but I need to apply formatting to my missing values, specifically for Paid and Percent. The non-zero data was formatted earlier during a SQL procedure. So far I've tried restating the format with DEFINE and also with FORMAT after define - neither worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Format the missings to what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any event, you can define a format in PROC FORMAT that includes the desired formatting for missing values before your run PROC REPORT, and then apply the format in PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479875#M71503</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-20T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479876#M71504</link>
      <description>&lt;P&gt;I want missing values for Paid to be dollar14.2 and Percent to be Percent5.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I write a PROC FORMAT to target missing values in PROC REPORT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479876#M71504</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2018-07-20T14:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479889#M71505</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183090"&gt;@rlafond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want missing values for Paid to be dollar14.2 and Percent to be Percent5.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would I write a PROC FORMAT to target missing values in PROC REPORT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ryan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what exactly does a missing value in dollar14.2 look like? "$&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .00"&amp;nbsp;&amp;nbsp; "$**********.**" something else?&lt;/P&gt;
&lt;P&gt;Same with what does a missing value in Percent5.1 look like?&lt;/P&gt;
&lt;P&gt;BTW you may want to either consider using PercentN5.1 or make the width wider as Percent5.1 does not show 100 percent very well:&lt;/P&gt;
&lt;PRE&gt;data example;
   input x;
datalines;
1
.1
.01
-.1
-.01
;
run;
proc print;
   format x percent5.1;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479889#M71505</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-20T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479891#M71506</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183090"&gt;@rlafond&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want missing values for Paid to be dollar14.2 and Percent to be Percent5.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would I write a PROC FORMAT to target missing values in PROC REPORT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, you want the non-missing values for PAID to be dollar14.2 and the non-missing values for PERCENT to be percent5.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So we still don't know what you want the missing values to look like. Show us. Type it in what the missing values are supposed to look like.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479891#M71506</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-20T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479914#M71507</link>
      <description>&lt;P&gt;Missing values for Paid should look like $0.00 and missing values for Percent should look like 0.0%.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479914#M71507</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2018-07-20T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting missing values in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479919#M71508</link>
      <description>&lt;P&gt;SO before your PROC REPORT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value paidf .='$0.00' other=[dollar14.2];
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can figure out what to do for percent, it's similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in PROC REPORT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define paid / analysis sum format=paidf.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-missing-values-in-PROC-REPORT/m-p/479919#M71508</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-20T15:39:21Z</dc:date>
    </item>
  </channel>
</rss>

