<?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: PROC Tabulate: preloadfmt in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42031#M10902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may still be able to have your cake and eat it too.&amp;nbsp; Start a new thread where you explain what you want include sample data and the rest.&amp;nbsp; Give exact details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 14:35:22 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-04-12T14:35:22Z</dc:date>
    <item>
      <title>PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42025#M10896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use preloadfmt with proc tabulate but I am receiving the following error:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The format for variable &lt;STRONG&gt;SAMPLE_MONTH&lt;/STRONG&gt; cannot be preloaded. Preload will have no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Code example:&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;proc format;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;value time_frame_format (notsorted)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;low-&amp;lt;'01JAN2008'd = 'Before 2008'&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;'01JAN2008'd-&amp;lt;'01JAN2009'd = [worddate20.]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;﻿'01JAN2009'd-&amp;lt;'01JAN2010'd = 'Timeframe1'&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;'01JAN2010'd-high = 'After timeframe1'&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;proc tabulate data=work.data MISSING order=data;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;class c_type;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;class sample_month / preloadfmt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;var amount;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;format sample_month ﻿time_frame_format.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;table = c_type, amount * SUM, c_type all='TOTAL';&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 19:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42025#M10896</guid>
      <dc:creator>Brian</dc:creator>
      <dc:date>2011-08-03T19:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42026#M10897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;'01JAN2008'd-&amp;lt;'01JAN2009'd = [worddate20.]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You will need to expand this, but do you really want all 366 days represented in your summary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 20:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42026#M10897</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-08-03T20:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42027#M10898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks greatly appreciated! The sample_month field only contains the first of each month so the summary would be limited to 12 values for that specified range. I now understand that I must expand all the format ranges for preloadfmt to work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 21:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42027#M10898</guid>
      <dc:creator>Brian</dc:creator>
      <dc:date>2011-08-03T21:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42028#M10899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am having a similar problem. Can you elaborate on what you mean here? The way I'm understanding it, data _null_ is suggesting that the preloadfmt error that brian is receiving is due to the fact that he is using ranges to define his multi-label format. I too am trying to define a multi-label format to use in a proc tabulate and am receiving the error that brian noted.&amp;nbsp; In my situation, it would be nearly impossible for my to individually define each of my numeric values. However, I see plenty of documented examples (incl on the SAS website) where people are successfully using ranges in their user-defined multilabel format definitions without having to expand out and define each value separately. I think I must be misunderstanding the solution here? Any help would be greatly appreciated! My situation looks something like this (hopefully no typos--i didnt copy/paste here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format; picture testf (multilabel notsorted) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-9996="0000" (prefix="2/")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9997-9999="Worst"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9997="Worse 1" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9998="Worse 2";&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=dat1;&lt;/P&gt;&lt;P&gt;class vision /mlf preloadfmt order=data;&lt;/P&gt;&lt;P&gt;class group;&lt;/P&gt;&lt;P&gt;table vision,(group all)*(n colpctn); &lt;/P&gt;&lt;P&gt;format vision testf.; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 01:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42028#M10899</guid>
      <dc:creator>ashlicole</dc:creator>
      <dc:date>2013-04-12T01:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42029#M10900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ranges are fine but not they must map to a single value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0-9996="0000"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't say make the range 0-9996 a single value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been experimenting with your program in the other thread and it "works" mostly for everything but PRELOADFMT. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 10:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42029#M10900</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-12T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42030#M10901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AHA! This was the jist of my eventual conclusion as well. It seems that this means a picture format will never be able to be preloaded. It makes sense to me that a format could not be preloaded if it is dependent on the data itself (like a picture format is). Unfortunately, the format is useless to me if I can't apply it to this proc tabulate &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42030#M10901</guid>
      <dc:creator>ashlicole</dc:creator>
      <dc:date>2013-04-12T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate: preloadfmt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42031#M10902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may still be able to have your cake and eat it too.&amp;nbsp; Start a new thread where you explain what you want include sample data and the rest.&amp;nbsp; Give exact details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Tabulate-preloadfmt/m-p/42031#M10902</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-12T14:35:22Z</dc:date>
    </item>
  </channel>
</rss>

