Help using Base SAS procedures

SAS program behaving differently on different environments

Accepted Solution Solved
Reply
Regular Contributor
Posts: 234
Accepted Solution

SAS program behaving differently on different environments

Hi,

 

At work, we have several SAS environments for development, testing...

They are all SAS 9.4 that are hosted on similar virtual machines on the same

physical unit (AIX P8).

We have a code snippet that shows a different behaviour on the testing environment.

It seems that the findw function produces different results from one environment to the other.

 

%let indice=%sysfunc(findw(H B N F FU FZ FE,&taxe&reg.,' ',E));

 

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

(it's in french, sorry - "est résolue" mean "is resolved") :

 

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 .
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.

 

Does the behaviour of the findw function depend on some settings that could have been altered ?

 

Thanks in advance for your help.


Accepted Solutions
Solution
‎04-20-2016 03:34 AM
Regular Contributor
Posts: 234

Re: SAS program behaving differently on different environments

After a restart, the problem is solved.

View solution in original post


All Replies
Solution
‎04-20-2016 03:34 AM
Regular Contributor
Posts: 234

Re: SAS program behaving differently on different environments

After a restart, the problem is solved.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 206 views
  • 0 likes
  • 1 in conversation