<?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 Testing for Preloadability in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730800#M227610</link>
    <description>&lt;P&gt;I would like to test if a format can be preloaded.&amp;nbsp; &amp;nbsp;Is there an easy way to test: &lt;EM&gt;&lt;STRONG&gt;"is a SAS format, calls a function, or contains a nested format in its definition."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;520        proc summary data=sashelp.class completetypes;
521           class sex / preloadfmt;
522           format sex $upcase.;
523           output;
524           run;

NOTE: Multiple concurrent threads will be used to summarize data.
WARNING: &lt;STRONG&gt;The format for variable Sex cannot be preloaded.&lt;/STRONG&gt; 
A finite set of formatted values cannot be produced from the format.  
The format is not recognized, is a SAS format, calls a function, or contains a nested format in its definition. 
Preload will have no effect.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.DATA1 has 3 observations and 3 variables.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 18:19:05 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2021-04-01T18:19:05Z</dc:date>
    <item>
      <title>Testing for Preloadability</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730800#M227610</link>
      <description>&lt;P&gt;I would like to test if a format can be preloaded.&amp;nbsp; &amp;nbsp;Is there an easy way to test: &lt;EM&gt;&lt;STRONG&gt;"is a SAS format, calls a function, or contains a nested format in its definition."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;520        proc summary data=sashelp.class completetypes;
521           class sex / preloadfmt;
522           format sex $upcase.;
523           output;
524           run;

NOTE: Multiple concurrent threads will be used to summarize data.
WARNING: &lt;STRONG&gt;The format for variable Sex cannot be preloaded.&lt;/STRONG&gt; 
A finite set of formatted values cannot be produced from the format.  
The format is not recognized, is a SAS format, calls a function, or contains a nested format in its definition. 
Preload will have no effect.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.DATA1 has 3 observations and 3 variables.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 18:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730800#M227610</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-04-01T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Preloadability</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730804#M227613</link>
      <description>&lt;P&gt;I would assume you could figure that out by looking the CNTLOUT dataset generated by PROC FORMAT for that format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try that?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 18:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730804#M227613</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-04-01T18:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Preloadability</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730810#M227617</link>
      <description>&lt;P&gt;Looks like perhaps having 'F' in HLO variable?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format cntlout=definition ;
value simple 1='One' 2='Two';
value compound 3='Three' other=[simple.] ;
value range 10-12='Pre-teen' 13-19='Teen' other='Other';
run;

proc print data=definition; 
 where fmtname in ('SIMPLE' 'COMPOUND' 'RANGE');
 var  fmtname type hlo start end label ;
run;


proc summary data=sashelp.class completetypes;
  class age / preloadfmt;
  format age simple. ;
  output;
run;

proc summary data=sashelp.class completetypes;
  class age / preloadfmt;
  format age compound. ;
  output;
run;

proc summary data=sashelp.class completetypes;
  class age / preloadfmt;
  format age range. ;
  output;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 18:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Preloadability/m-p/730810#M227617</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-04-01T18:51:40Z</dc:date>
    </item>
  </channel>
</rss>

