<?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: Custom numeric format left aligns in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5270#M1669</link>
    <description>Hi:&lt;BR /&gt;
Partly the answer depends on your destination of choice. You can use this syntax for RTF, PDF and HTML:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define sales / display format=abc.&lt;BR /&gt;
         style(column)={just=r};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
but the downside is that this syntax won't work for LISTING.&lt;BR /&gt;
&lt;BR /&gt;
One solution that would work for all destinations, including LISTING, would be to add a compute block to your code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
* USAGE=DISPLAY;&lt;BR /&gt;
compute sales;&lt;BR /&gt;
   if sales = . then sales = 0.00;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
OR&lt;BR /&gt;
*USAGE=SUM or default usage is used;&lt;BR /&gt;
compute sales;&lt;BR /&gt;
  if sales.sum = . then sales.sum = 0.00;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
If you need help faster than people on the forum respond, your best bet for a quick response is to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 31 Oct 2007 15:29:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-10-31T15:29:17Z</dc:date>
    <item>
      <title>Custom numeric format left aligns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5268#M1667</link>
      <description>I am using this custom format to replace the missing values of a column with 0.00&lt;BR /&gt;
&lt;BR /&gt;
On doing this the values 0.00 gets left aligned.&lt;BR /&gt;
&lt;BR /&gt;
1. How to get them right aligned along with the other values.&lt;BR /&gt;
2. Is there any other way by which we can replace the missing values with 0.00 and should appear as right aligned when used in proce report&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data work.Test;&lt;BR /&gt;
input code $ sales 10.2;&lt;BR /&gt;
datalines;&lt;BR /&gt;
A1001  2500.25&lt;BR /&gt;
A1002  3500&lt;BR /&gt;
A1003  .&lt;BR /&gt;
A1004  0.4&lt;BR /&gt;
run;   &lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
	value abc .= 0.00 other=[comma12.2];&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
proc report data=Work.Test;&lt;BR /&gt;
	column code sales;&lt;BR /&gt;
	define sales / display format=abc. ;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 30 Oct 2007 09:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5268#M1667</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-10-30T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom numeric format left aligns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5269#M1668</link>
      <description>Can somebody reply please</description>
      <pubDate>Wed, 31 Oct 2007 14:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5269#M1668</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-10-31T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom numeric format left aligns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5270#M1669</link>
      <description>Hi:&lt;BR /&gt;
Partly the answer depends on your destination of choice. You can use this syntax for RTF, PDF and HTML:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define sales / display format=abc.&lt;BR /&gt;
         style(column)={just=r};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
but the downside is that this syntax won't work for LISTING.&lt;BR /&gt;
&lt;BR /&gt;
One solution that would work for all destinations, including LISTING, would be to add a compute block to your code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
* USAGE=DISPLAY;&lt;BR /&gt;
compute sales;&lt;BR /&gt;
   if sales = . then sales = 0.00;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
OR&lt;BR /&gt;
*USAGE=SUM or default usage is used;&lt;BR /&gt;
compute sales;&lt;BR /&gt;
  if sales.sum = . then sales.sum = 0.00;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
If you need help faster than people on the forum respond, your best bet for a quick response is to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 31 Oct 2007 15:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-numeric-format-left-aligns/m-p/5270#M1669</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-31T15:29:17Z</dc:date>
    </item>
  </channel>
</rss>

