<?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: Dealing with missing values &amp; removing header columns Using proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-missing-values-removing-header-columns-Using-proc/m-p/23749#M3955</link>
    <description>Try this:&lt;BR /&gt;
&lt;BR /&gt;
data t; &lt;BR /&gt;
 length name $20 age 8;&lt;BR /&gt;
 name = 'Kalle1'; age = 10; output;&lt;BR /&gt;
 name = 'Kalle2'; age = .; output;&lt;BR /&gt;
 name = 'Kalle3'; age = 12; output;&lt;BR /&gt;
 name = 'Kalle4'; age = 13; output;&lt;BR /&gt;
 name = 'Kalle5'; age = .; output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
 picture nice &lt;BR /&gt;
    .     = ' '&lt;BR /&gt;
    low-high = '000 000 000 000';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
proc report data = t;&lt;BR /&gt;
 column name age;&lt;BR /&gt;
 define name / 'Namn';&lt;BR /&gt;
 define age / '' format=nice.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//Fredrik</description>
    <pubDate>Mon, 27 Apr 2009 10:39:10 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2009-04-27T10:39:10Z</dc:date>
    <item>
      <title>Dealing with missing values &amp; removing header columns Using proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-missing-values-removing-header-columns-Using-proc/m-p/23748#M3954</link>
      <description>I have a dataset named grocmiss and for few of the columns in this dataset there are missing values.When I use this missing values in the report compute block for missing values the report display it as dot.&lt;BR /&gt;
&lt;BR /&gt;
            1          2       3       4        5 &lt;BR /&gt;
Sector  Sales Sales Sales Sales Sales &lt;BR /&gt;
ne         .          .         .       .       $596.00 .  &lt;BR /&gt;
nw         .         .      $690.00 $598.00 .  &lt;BR /&gt;
se       $130.00 $630.00 .  .  . &lt;BR /&gt;
sw         .         .         .        .  $353.00 &lt;BR /&gt;
          $130.00 $630.00 $690.00 $598.00 $949.00 &lt;BR /&gt;
&lt;BR /&gt;
Whereever there is DOT I want the report to be displayed as SPACE or ZERO. Secnod requirement is I dont want the header Sales to be displayed in the output but the values to be summarised.&lt;BR /&gt;
&lt;BR /&gt;
Please help me.&lt;BR /&gt;
&lt;BR /&gt;
Here is the code:-&lt;BR /&gt;
&lt;BR /&gt;
data grocmiss;&lt;BR /&gt;
   input Sector $ Manager $ Department $ Sales @@;&lt;BR /&gt;
datalines;&lt;BR /&gt;
se 1 np1 50    .  1 p1 100   se . np2 120   se 1 p2 80&lt;BR /&gt;
se 2 np1 40    se 2 p1 300   se 2 np2 220   se 2 p2 70&lt;BR /&gt;
nw 3 np1 60    nw 3 p1 600   .  3 np2 420   nw 3 p2 30&lt;BR /&gt;
nw 4 np1 45    nw 4 p1 250   nw 4 np2 230   nw 4 p2 73&lt;BR /&gt;
nw 9 np1 45    nw 9 p1 205   nw 9 np2 420   nw 9 p2 76&lt;BR /&gt;
sw 5 np1 53    sw 5 p1 130   sw 5 np2 120   sw 5 p2 50&lt;BR /&gt;
.  . np1 40    sw 6 p1 350   sw 6 np2 225   sw 6 p2 80&lt;BR /&gt;
ne 7 np1 90    ne . p1 190   ne 7 np2 420   ne 7 p2 86&lt;BR /&gt;
ne 8 np1 200   ne 8 p1 300   ne 8 np2 420   ne 8 p2 125&lt;BR /&gt;
;&lt;BR /&gt;
 &lt;BR /&gt;
  proc report data=grocmiss nowd headline  ;&lt;BR /&gt;
     column sector manager,sales; &lt;BR /&gt;
     define sector / group format=$sctrfmt.;&lt;BR /&gt;
   define manager / across format=$mgrfmt.;&lt;BR /&gt;
   define sales /sum  format=dollar9.2 ; &lt;BR /&gt;
     rbreak after / dol summarize;&lt;BR /&gt;
	 &lt;BR /&gt;
title 'Summary Report for All Sectors and Managers';&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 27 Apr 2009 07:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-missing-values-removing-header-columns-Using-proc/m-p/23748#M3954</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-27T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with missing values &amp; removing header columns Using proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-missing-values-removing-header-columns-Using-proc/m-p/23749#M3955</link>
      <description>Try this:&lt;BR /&gt;
&lt;BR /&gt;
data t; &lt;BR /&gt;
 length name $20 age 8;&lt;BR /&gt;
 name = 'Kalle1'; age = 10; output;&lt;BR /&gt;
 name = 'Kalle2'; age = .; output;&lt;BR /&gt;
 name = 'Kalle3'; age = 12; output;&lt;BR /&gt;
 name = 'Kalle4'; age = 13; output;&lt;BR /&gt;
 name = 'Kalle5'; age = .; output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
 picture nice &lt;BR /&gt;
    .     = ' '&lt;BR /&gt;
    low-high = '000 000 000 000';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
proc report data = t;&lt;BR /&gt;
 column name age;&lt;BR /&gt;
 define name / 'Namn';&lt;BR /&gt;
 define age / '' format=nice.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//Fredrik</description>
      <pubDate>Mon, 27 Apr 2009 10:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-missing-values-removing-header-columns-Using-proc/m-p/23749#M3955</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2009-04-27T10:39:10Z</dc:date>
    </item>
  </channel>
</rss>

