BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
gamotte
Rhodochrosite | Level 12

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.

1 ACCEPTED SOLUTION

Accepted Solutions
gamotte
Rhodochrosite | Level 12

After a restart, the problem is solved.

View solution in original post

1 REPLY 1
gamotte
Rhodochrosite | Level 12

After a restart, the problem is solved.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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