<?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: Format $[name] was not found or could not be loaded in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468737#M119781</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2018 15:31:17 GMT</pubDate>
    <dc:creator>amin1234</dc:creator>
    <dc:date>2018-06-08T15:31:17Z</dc:date>
    <item>
      <title>Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468716#M119768</link>
      <description>&lt;P&gt;I created and user defined format but when I run data step to apply format the log reads&amp;nbsp;Format $disf was not found or could not be loaded. I am using SAS University Edition. Engine V9. Below is the full code. Any ideas will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname abc "/folders/myfolders/xyz";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc import datafile="&lt;SPAN&gt;/folders/myfolders/xyz/document.xlsx"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;out=doc1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbms=xlsx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;value disf 0='No' 1='Yes';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data doc2; set doc1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format diseased disf.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 14:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468716#M119768</guid>
      <dc:creator>amin1234</dc:creator>
      <dc:date>2018-06-08T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468719#M119769</link>
      <description>&lt;P&gt;You need to examine your dataset doc1 thoroughly and properly. Your code works fine for my example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;

value disf 0='No' 1='Yes';

run;

 

data w;
do i=1 to 10;
 do j=0 to 1;
output;
end;
end;
format j disf.;
drop i;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jun 2018 14:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468719#M119769</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-08T14:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468720#M119770</link>
      <description>&lt;P&gt;Is the variable DISEASED numeric or character?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 14:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468720#M119770</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-08T14:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468722#M119771</link>
      <description>&lt;P&gt;It's a character variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468722#M119771</guid>
      <dc:creator>amin1234</dc:creator>
      <dc:date>2018-06-08T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468726#M119773</link>
      <description>&lt;P&gt;Ok so add a $ to format name and try again&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;

value $disf 0='No' 1='Yes';

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468726#M119773</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-08T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468736#M119780</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok so add a $ to format name and try again&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;

value $disf 0='No' 1='Yes';

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;AND use the new format:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data doc2; set doc1;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;format diseased $disf.;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468736#M119780</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-08T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Format $[name] was not found or could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468737#M119781</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-name-was-not-found-or-could-not-be-loaded/m-p/468737#M119781</guid>
      <dc:creator>amin1234</dc:creator>
      <dc:date>2018-06-08T15:31:17Z</dc:date>
    </item>
  </channel>
</rss>

