<?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: Formats and tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35028#M8566</link>
    <description>You will want to review this post, before re-posting your code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sat, 12 Jun 2010 16:37:42 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-06-12T16:37:42Z</dc:date>
    <item>
      <title>Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35027#M8565</link>
      <description>Hello everyone:&lt;BR /&gt;
&lt;BR /&gt;
   I have a trouble when dealing with format.&lt;BR /&gt;
   Here is a example:&lt;BR /&gt;
&lt;BR /&gt;
data trial;&lt;BR /&gt;
input id age grade;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 23 1&lt;BR /&gt;
2 39 1&lt;BR /&gt;
3 45 4&lt;BR /&gt;
4 56 10&lt;BR /&gt;
5 67 2&lt;BR /&gt;
6 78 11&lt;BR /&gt;
7 89 12&lt;BR /&gt;
;&lt;BR /&gt;
proc format;&lt;BR /&gt;
value agefmt 0-&amp;lt;20=A&lt;BR /&gt;
             21-&amp;lt;30=B&lt;BR /&gt;
             31-&amp;lt;40=C&lt;BR /&gt;
             41-&amp;lt;50=D&lt;BR /&gt;
             51-&amp;lt;60=E&lt;BR /&gt;
             61-&amp;lt;70=F&lt;BR /&gt;
             71-&amp;lt;80=G&lt;BR /&gt;
             81-&amp;lt;90=H;&lt;BR /&gt;
value grafmt 1-6=J&lt;BR /&gt;
             7-9=S&lt;BR /&gt;
             10-12=H;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=trial;&lt;BR /&gt;
class age grade;&lt;BR /&gt;
tables age,grade;&lt;BR /&gt;
format age agefmt. grade grafmt. ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I would like to produce a table, which row and column are composed by values of format agefmt and grafmt, but this &lt;BR /&gt;
&lt;BR /&gt;
program ignores missing values for format.&lt;BR /&gt;
How can I produce table like this :&lt;BR /&gt;
     J   S   H&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;BR /&gt;
D&lt;BR /&gt;
E&lt;BR /&gt;
F&lt;BR /&gt;
G&lt;BR /&gt;
H&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 12 Jun 2010 15:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35027#M8565</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-12T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35028#M8566</link>
      <description>You will want to review this post, before re-posting your code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 12 Jun 2010 16:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35028#M8566</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-06-12T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35029#M8567</link>
      <description>Hi. you do not say something about your error .&lt;BR /&gt;
and what do your log look like?&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value agefmt 0-&amp;lt;20= ???????   ; you also give nothing information.</description>
      <pubDate>Sun, 13 Jun 2010 08:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35029#M8567</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-06-13T08:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35030#M8568</link>
      <description>sorry, I haven't notice that there is a limit in line of one topic.&lt;BR /&gt;
&lt;BR /&gt;
I need a report which column and row are consisted by all values defined in format procedure previously, but there are some missing values for several values of format, so in report generated by tabulate procedure or freq procedure, some columns and rows I demanded will be missing. How can I get the result I need?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sun, 13 Jun 2010 12:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35030#M8568</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-13T12:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35031#M8569</link>
      <description>The issue is not a line limitation but that certain character combinations are interpreted as HTML code instead of content (that's the link Scott pointed you to).&lt;BR /&gt;
&lt;BR /&gt;
As for your question.&lt;BR /&gt;
I have to guess a bit as not your full post made it to this forum but you might be interested in investigating the options "missing" or "CLASSDATA=" for Proc Tabulate ( &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a002473736.htm#a003069171" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a002473736.htm#a003069171&lt;/A&gt; )&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sun, 13 Jun 2010 14:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35031#M8569</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-06-13T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35032#M8570</link>
      <description>Your ability to post code will be greatly enhanced if you read the forum posting that Scott referenced. Any code with &amp;lt; or &amp;gt; must be treated specially for posting so it does not conflict with the HTML used to maintain the forum. That's what Scott's article talks about -- how to protect those special characters and how to post code snippets.&lt;BR /&gt;
&lt;BR /&gt;
In addition, these previous forum postings and Tech Support notes discuss the use of PRELOADFMT with PROC TABULATE to account for the appearance of CLASS variables in the table, even if the values themselves do not appear in the data.&lt;BR /&gt;
&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;A href="http://support.sas.com/forums/thread.jspa?messageID=17685䔕" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=17685䔕&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/101.html" target="_blank"&gt;http://support.sas.com/kb/25/101.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/400.html" target="_blank"&gt;http://support.sas.com/kb/25/400.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/403.html" target="_blank"&gt;http://support.sas.com/kb/25/403.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/846.html" target="_blank"&gt;http://support.sas.com/kb/23/846.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 13 Jun 2010 14:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35032#M8570</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-13T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35033#M8571</link>
      <description>[pre]&lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
   tables name /missing;&lt;BR /&gt;
   format name fmt.;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc tabulate data=sashelp.class;&lt;BR /&gt;
  class name /preloadfmt;&lt;BR /&gt;
  table name/printmiss;&lt;BR /&gt;
  format name fmt.;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Mon, 14 Jun 2010 05:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35033#M8571</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-06-14T05:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35034#M8572</link>
      <description>Thank you, Cynthia, Krasharp and everyone. SAS and this forum are really fresh for me, and the history topics are quite useful.</description>
      <pubDate>Mon, 14 Jun 2010 14:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formats-and-tabulate/m-p/35034#M8572</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-14T14:20:41Z</dc:date>
    </item>
  </channel>
</rss>

