<?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 not found for batch-processing (while OK for EGuide) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427971#M105601</link>
    <description>&lt;P&gt;Sounds like the format library APFMTLIB contains an informat named Z, which is assigned to one or more variables&amp;nbsp;on the input table.&amp;nbsp;Zw. may be a standard format,&amp;nbsp;but that does not stop you from creating an informat with the same name.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 10:55:55 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2018-01-16T10:55:55Z</dc:date>
    <item>
      <title>Format not found for batch-processing (while OK for EGuide)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427965#M105599</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my SAS-users receives following error when executing her sas-code via command line (batch mode): ./sas + sas-file&lt;/P&gt;&lt;P&gt;ERROR: The &lt;STRONG&gt;informat&lt;/STRONG&gt; Z was not found or could not be loaded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format "Zw" is a standard&amp;nbsp;&lt;STRONG&gt;format&lt;/STRONG&gt; (no informat as error indicates)&lt;STRONG&gt;.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When executing her sas-code via EGuide then no ERROR received while error when via batch-mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked the OPTION FMTSEARCH for EGuide (working fine) and batch mode (not OK) :&lt;/P&gt;&lt;P&gt;Via EGuide : FMTSEARCH=( APFMTLIB WORK LIBRARY )&lt;/P&gt;&lt;P&gt;with APFMTLIB = SASEnvironment/SASFormats -&amp;gt; no files in this folder&lt;BR /&gt;Via batch mode :&amp;nbsp;&amp;nbsp;FMTSEARCH=(WORK LIBRARY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be cause of this issue?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI. snippet producing error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;proc Sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table &amp;amp;lib_tmp.&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;amp;dataset_vat._entr as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct t1.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.C_CODEENTRPSTATU_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.D_I_INSCR_KBO as BeginDatumONKBO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.D_I_KBO_CLOT as EindDatumONKBO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.D_I_DEBUT as OprichtingsDatum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.D_I_CESS as BeeindigingsDatum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from &amp;amp;lib_output.&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;amp;dataset_vat.(where=(substr(put(C_I_ENTRP_NUM,z10.),&lt;STRONG&gt;1&lt;/STRONG&gt;,&lt;STRONG&gt;1&lt;/STRONG&gt;)^="2")) as t1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join &amp;amp;SITRAN.&lt;STRONG&gt;.E&lt;/STRONG&gt;NTREPRISE_ETABLISSEMENT as t2 on (t1.C_PERS_IDF=t2.C_PERS_IDF);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427965#M105599</guid>
      <dc:creator>jurlis</dc:creator>
      <dc:date>2018-01-16T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Format not found for batch-processing (while OK for EGuide)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427971#M105601</link>
      <description>&lt;P&gt;Sounds like the format library APFMTLIB contains an informat named Z, which is assigned to one or more variables&amp;nbsp;on the input table.&amp;nbsp;Zw. may be a standard format,&amp;nbsp;but that does not stop you from creating an informat with the same name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427971#M105601</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-01-16T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Format not found for batch-processing (while OK for EGuide)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427990#M105613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/97426"&gt;@jurlis&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the difference in behaviour is due to the &lt;A href="http://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=p1djbl02hfnoe3n0zh2i3uu2aqrf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;FMTERR System Option&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;With SAS Enterprise Guide (EG), the option is set to NOFMTERR while in batch you may have FMTERR.&lt;/P&gt;
&lt;P&gt;You can compare the two values by running:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=fmterr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm guessing that with EG, if you change the value to FMTERR you'll have the same result as you have in batch.&lt;/P&gt;
&lt;P&gt;So if you set NOFMTERR in batch, you should not have the error and the result should be the same as the one you have with EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 12:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-not-found-for-batch-processing-while-OK-for-EGuide/m-p/427990#M105613</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2018-01-16T12:57:31Z</dc:date>
    </item>
  </channel>
</rss>

