<?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: Preloaded Formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644699#M192609</link>
    <description>&lt;P&gt;Hi Ronein,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prefloadfmt option to display all the modalities defined in the format, even if they are not observed in your input dataset.&lt;/P&gt;
&lt;P&gt;With the exclusive option, you tell SAS to&amp;nbsp;display all the modalities&amp;nbsp;defined in the format AND not to remove from display the observations with a value that has not been defined in the format.&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value sex 0="Male" 1="Female";
run;

data have;
	input sex;
	format sex sex.;
	datalines;
0
0
0
3
;
run;

title "Without preloadfmt option";
proc tabulate data=have;
	class sex;
	table sex*n='';
run;

title "With preloadfmt option";
proc tabulate data=have;
	class sex / preloadfmt;
	table sex*n='' / printmiss;
run;

title "With preloadfmt and exclusive options";
proc tabulate data=have;
	class sex / preloadfmt exclusive;
	table sex*n='' / printmiss;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture d’écran 2020-05-02 à 13.58.49.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38995i853ED99B1A7864C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-02 à 13.58.49.png" alt="Capture d’écran 2020-05-02 à 13.58.49.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 12:04:36 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-05-02T12:04:36Z</dc:date>
    <item>
      <title>Preloaded Formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644671#M192596</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What does it mean&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Preloaded Formats&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;Does it mean that when I want to show also levels(categories) that have no rows in the row data then I need to use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Preloaded Formats&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use proc tabulate I see that sometimes using with class statement "preloadfmt " and sometimes "preloadfmt exclusive"? What is the difference? When should we add the word&amp;nbsp;exclusive?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When do we use the option "notsorted" in user defined proc format?&lt;/P&gt;
&lt;P&gt;Is it in order to sort the levels (rows) in summary report by the order of left side values in proc report?&lt;/P&gt;
&lt;P&gt;I see that when&amp;nbsp; we use "notsorted" option then we use also "order=data" in class statement of proc tabulate. Why should we use them together(notsorted and order=data)??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 09:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644671#M192596</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-05-02T09:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Preloaded Formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644673#M192598</link>
      <description>&lt;P&gt;I suggest that you study the documentation for the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=n12teq2mctxmbjn1hu0ykvqwgpvp.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLASS Statement&lt;/A&gt; in PROC TABULATE, and the example that is linked in the description of the EXCLUSIVE option.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 09:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644673#M192598</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-02T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Preloaded Formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644699#M192609</link>
      <description>&lt;P&gt;Hi Ronein,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prefloadfmt option to display all the modalities defined in the format, even if they are not observed in your input dataset.&lt;/P&gt;
&lt;P&gt;With the exclusive option, you tell SAS to&amp;nbsp;display all the modalities&amp;nbsp;defined in the format AND not to remove from display the observations with a value that has not been defined in the format.&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value sex 0="Male" 1="Female";
run;

data have;
	input sex;
	format sex sex.;
	datalines;
0
0
0
3
;
run;

title "Without preloadfmt option";
proc tabulate data=have;
	class sex;
	table sex*n='';
run;

title "With preloadfmt option";
proc tabulate data=have;
	class sex / preloadfmt;
	table sex*n='' / printmiss;
run;

title "With preloadfmt and exclusive options";
proc tabulate data=have;
	class sex / preloadfmt exclusive;
	table sex*n='' / printmiss;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture d’écran 2020-05-02 à 13.58.49.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38995i853ED99B1A7864C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-02 à 13.58.49.png" alt="Capture d’écran 2020-05-02 à 13.58.49.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 12:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preloaded-Formats/m-p/644699#M192609</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-02T12:04:36Z</dc:date>
    </item>
  </channel>
</rss>

