<?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 SAS program behaving differently on different environments in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-program-behaving-differently-on-different-environments/m-p/264821#M57818</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At work, we have several SAS environments for development, testing...&lt;/P&gt;
&lt;P&gt;They are all SAS 9.4 that are hosted on similar virtual machines on the same&lt;/P&gt;
&lt;P&gt;physical unit (AIX P8).&lt;/P&gt;
&lt;P&gt;We have a code snippet that shows a different behaviour on the testing environment.&lt;/P&gt;
&lt;P&gt;It seems that the findw function produces different results from one environment to the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let indice=%sysfunc(findw(H B N F FU FZ FE,&amp;amp;taxe&amp;amp;reg.,' ',E));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Testing with a usecase where taxe=B and reg is void works fine in dev, but when run on the test env, the following error occurs&lt;/P&gt;
&lt;P&gt;(it's in french, sorry - "est résolue" mean "is resolved") :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SYMBOLGEN:  La macro-variable TAXE est résolue en B
SYMBOLGEN:  La macro-variable REG est résolue en 
MLOGIC(FDL_APP_MAC_IHM_TAB_IFP) :  %LET (le nom de la variable est REGINT)
SYMBOLGEN:  La macro-variable INDICE est résolue en .
&lt;STRONG&gt;&lt;FONT color="red"&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: . 
ERROR: Argument 2 to macro function %SCAN is not a number.
ERROR: The macro FDL_APP_MAC_IHM_TAB_IFP will stop executing.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the behaviour of the findw function depend on some settings that could have been altered ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 15:52:05 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2016-04-19T15:52:05Z</dc:date>
    <item>
      <title>SAS program behaving differently on different environments</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-program-behaving-differently-on-different-environments/m-p/264821#M57818</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At work, we have several SAS environments for development, testing...&lt;/P&gt;
&lt;P&gt;They are all SAS 9.4 that are hosted on similar virtual machines on the same&lt;/P&gt;
&lt;P&gt;physical unit (AIX P8).&lt;/P&gt;
&lt;P&gt;We have a code snippet that shows a different behaviour on the testing environment.&lt;/P&gt;
&lt;P&gt;It seems that the findw function produces different results from one environment to the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let indice=%sysfunc(findw(H B N F FU FZ FE,&amp;amp;taxe&amp;amp;reg.,' ',E));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Testing with a usecase where taxe=B and reg is void works fine in dev, but when run on the test env, the following error occurs&lt;/P&gt;
&lt;P&gt;(it's in french, sorry - "est résolue" mean "is resolved") :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SYMBOLGEN:  La macro-variable TAXE est résolue en B
SYMBOLGEN:  La macro-variable REG est résolue en 
MLOGIC(FDL_APP_MAC_IHM_TAB_IFP) :  %LET (le nom de la variable est REGINT)
SYMBOLGEN:  La macro-variable INDICE est résolue en .
&lt;STRONG&gt;&lt;FONT color="red"&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: . 
ERROR: Argument 2 to macro function %SCAN is not a number.
ERROR: The macro FDL_APP_MAC_IHM_TAB_IFP will stop executing.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the behaviour of the findw function depend on some settings that could have been altered ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-program-behaving-differently-on-different-environments/m-p/264821#M57818</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-04-19T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program behaving differently on different environments</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-program-behaving-differently-on-different-environments/m-p/265019#M57835</link>
      <description>&lt;P&gt;After a restart, the problem is solved.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 07:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-program-behaving-differently-on-different-environments/m-p/265019#M57835</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-04-20T07:34:46Z</dc:date>
    </item>
  </channel>
</rss>

