<?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 hold a place in a table where there is no value? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61699#M17520</link>
    <description>Thank you, I will look into PRELOADFMT.</description>
    <pubDate>Wed, 05 Aug 2009 16:02:43 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-08-05T16:02:43Z</dc:date>
    <item>
      <title>How do I hold a place in a table where there is no value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61697#M17518</link>
      <description>For example, here is my code:&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=basedata1;&lt;BR /&gt;
    table satcat*apply/nocol norow nopercent missprint;&lt;BR /&gt;
    where hold=1 and reside=1;&lt;BR /&gt;
    format satcat satcat.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Output:&lt;BR /&gt;
	&lt;BR /&gt;
Table of SATCat by APPLY&lt;BR /&gt;
SATCat 	APPLY(apply) 	Total&lt;BR /&gt;
                       1.00&lt;BR /&gt;
1000-1090 	    8 	           8&lt;BR /&gt;
&amp;lt;1000 	        165 	        165&lt;BR /&gt;
Total 	        173 	         173&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is have the output table also include the other values of the variable SATcat in which there are no observations(in this particular subset of the data) so that the output looks something like this:&lt;BR /&gt;
&lt;BR /&gt;
Table of SATCat by APPLY&lt;BR /&gt;
SATCat 	APPLY(apply) 	Total&lt;BR /&gt;
                       1.00&lt;BR /&gt;
&amp;gt;1200&lt;BR /&gt;
1100-1190&lt;BR /&gt;
1000-1090 	    8 	           8&lt;BR /&gt;
&amp;lt;1000 	        165 	        165&lt;BR /&gt;
Total 	        173 	         173&lt;BR /&gt;
&lt;BR /&gt;
(Other tables I produce use similar variables and subset the data differently so that I end up with observations in all the levels of SATcat and I'm trying to make all of my tables look the same.) &lt;BR /&gt;
&lt;BR /&gt;
Any ideas? I would also love to know if this can be done in PROC Tabulate as well.</description>
      <pubDate>Wed, 05 Aug 2009 15:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61697#M17518</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-05T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hold a place in a table where there is no value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61698#M17519</link>
      <description>Hi,&lt;BR /&gt;
  You're on the right track, asking about PROC TABULATE. TABULATE, REPORT and MEANS are all procedures that support the use of the PRELOADFMT option -- which allows you to tell the procedures what list of values you'd LIKE to see in the output, even if some of the list does not appear in the data. PROC FREQ does -not- use the PRELOADFMT option.&lt;BR /&gt;
 &lt;BR /&gt;
  Some prior forums postings on the topic of PRELOADFMT are:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/forums/thread.jspa?messageID=19957䷵" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=19957䷵&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=14459㡻" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=14459㡻&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=4872ገ" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=4872ገ&lt;/A&gt;&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 05 Aug 2009 15:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61698#M17519</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-08-05T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hold a place in a table where there is no value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61699#M17520</link>
      <description>Thank you, I will look into PRELOADFMT.</description>
      <pubDate>Wed, 05 Aug 2009 16:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61699#M17520</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-05T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hold a place in a table where there is no value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61700#M17521</link>
      <description>I tried using PRELOADFMT for a proc tabulate procedure and it worked great, thank you! Anyone have any ideas on doing something similar using proc freq?</description>
      <pubDate>Wed, 05 Aug 2009 16:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-hold-a-place-in-a-table-where-there-is-no-value/m-p/61700#M17521</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-05T16:19:03Z</dc:date>
    </item>
  </channel>
</rss>

