<?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: Picture format or applicable in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545186#M22560</link>
    <description>&lt;P&gt;Use Traffic Light .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id x;
cards;
1 10000
2 -10000
;
run;


proc format ;
value fmt
 low-&amp;lt;0='red';
 run;

ods pdf file='c:\temp\x.pdf';

proc report data=have nowd;
column id x;
define id/display;
define x/display style={foreground=fmt.};
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Mar 2019 11:27:29 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-03-22T11:27:29Z</dc:date>
    <item>
      <title>Picture format or applicable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545027#M22551</link>
      <description>&lt;P&gt;I need to create/use a format that does the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;displays dollar amounts $xxxx,xx - &amp;gt; when zero or positive&lt;/P&gt;&lt;P&gt;($xxx,xxx) &amp;lt;-in red when negative&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing picture formats and could not get it to work properly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 20:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545027#M22551</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-03-21T20:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Picture format or applicable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545031#M22553</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10429"&gt;@Doug____&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to create/use a format that does the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;displays dollar amounts $xxxx,xx - &amp;gt; when zero or positive&lt;/P&gt;
&lt;P&gt;($xxx,xxx) &amp;lt;-in red when negative&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried doing picture formats and could not get it to work properly.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you show what you've tried so far? A picture format is the right approach here. Or you could create custom formats using a function and then use nested formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 20:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545031#M22553</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-21T20:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Picture format or applicable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545040#M22556</link>
      <description>&lt;P&gt;Actually I think I got it about two minutes after posting as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; picture dollar&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0-high &amp;nbsp; = '0,000,009' (prefix = '$')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; low-&amp;lt;0 &amp;nbsp; = '0,000,009)' (prefix = '^S={color = red}($');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 20:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545040#M22556</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-03-21T20:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Picture format or applicable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545062#M22558</link>
      <description>&lt;PRE&gt;proc format library = work cntlout=work.fmt;
picture negdollar  
low -&amp;lt;0 = '00,000,000,000,009.99)' (prefix='($'  )
0-high  = [dollar21.2]
;
run;

data example;
   input x;
   y= -1*x;
datalines;
1
12
123
1234
12345
123456
1234567
12345678
;
run;

proc print data=example;
  format x y negdollar.;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2019 21:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545062#M22558</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-21T21:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Picture format or applicable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545186#M22560</link>
      <description>&lt;P&gt;Use Traffic Light .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id x;
cards;
1 10000
2 -10000
;
run;


proc format ;
value fmt
 low-&amp;lt;0='red';
 run;

ods pdf file='c:\temp\x.pdf';

proc report data=have nowd;
column id x;
define id/display;
define x/display style={foreground=fmt.};
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Mar 2019 11:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Picture-format-or-applicable/m-p/545186#M22560</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-22T11:27:29Z</dc:date>
    </item>
  </channel>
</rss>

