<?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: How do I output headers for categories with missing data? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207344#M51512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how many columns does BENDATA have?&amp;nbsp; If you provide a list of the columns and if they are character or numeric I'll show you the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 14:41:57 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-06-16T14:41:57Z</dc:date>
    <item>
      <title>How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207341#M51509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use PROC TABULATE to calculate counts and amounts for a set of months for a set of data.&amp;nbsp; Some commands may not appear in all months.&amp;nbsp; The problem is that SAS EG 5.1 by default does not print out headers for missing data and I need all the Commands printed out that occurred in that year, regardless of whether they occurred in that month.&amp;nbsp;&amp;nbsp; I tried to use the PRINTMISS command after the TABLE statement, to no avail. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC TABULATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DATA = BENDATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR AMOUNT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CLASS MONTH / ORDER= UNFORMATTED MISSING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CLASS COMMAND / ORDER = UNFORMATTED MISSING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE MONTH * COMMAND,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AMOUNT * N PRINTMISS ;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error that says:&amp;nbsp; "That type of name (PRINTMISS) is unknown."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the workaround for this in SAS EG 5.1? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;BR /&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207341#M51509</guid>
      <dc:creator>Benbo123321</dc:creator>
      <dc:date>2015-06-16T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207342#M51510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would add a dummy id before this step, populate 'A' or 1 for each variable.&amp;nbsp; Then after this step you can run another step that deletes your dummy id.:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207342#M51510</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-16T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207343#M51511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how would i go about doing that?&amp;nbsp; The code above is system generated using the UI. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207343#M51511</guid>
      <dc:creator>Benbo123321</dc:creator>
      <dc:date>2015-06-16T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207344#M51512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how many columns does BENDATA have?&amp;nbsp; If you provide a list of the columns and if they are character or numeric I'll show you the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207344#M51512</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-16T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207345#M51513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has 3: Month, Command, and Amount. The first two are character, the last, numeric (?).&amp;nbsp; It is the summary count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207345#M51513</guid>
      <dc:creator>Benbo123321</dc:creator>
      <dc:date>2015-06-16T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207346#M51514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be clear; BENDATA has many columns.&amp;nbsp; The only ones I care about are the two above and the summary count on the AMOUNT variable. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207346#M51514</guid>
      <dc:creator>Benbo123321</dc:creator>
      <dc:date>2015-06-16T14:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207347#M51515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The PRINTMISS error is occurring because you are missing a / to indicate non- page/row/column options.&lt;/P&gt;&lt;P&gt;One way IF you know there is a limited and not constantly changing list of commands is to create a custom format that is not very exciting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value $command&amp;nbsp;&amp;nbsp; /* assuming it is character*/&lt;/P&gt;&lt;P&gt;"Command1" = "Command1"&lt;/P&gt;&lt;P&gt;"Command2" = "Command2"&lt;/P&gt;&lt;P&gt;&amp;lt;continue&amp;gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in proc tabulate add PRELOADFMT to the options for the command variable and&lt;/P&gt;&lt;P&gt;format command $command. ; to use the Command format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207347#M51515</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-16T15:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output headers for categories with missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207348#M51516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much.&amp;nbsp; you solved my problem.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 16:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-output-headers-for-categories-with-missing-data/m-p/207348#M51516</guid>
      <dc:creator>Benbo123321</dc:creator>
      <dc:date>2015-06-16T16:33:15Z</dc:date>
    </item>
  </channel>
</rss>

