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

Hi,

 

Some of the macro function like %compress , %eval , are malfunctioning.

But after reboot of SAS server it got fixed automatically.Can you please let me know the reason behind this issue.

I'm Using: SAS 9.3

In the below scenario %eval function works differently .

Below is the log :

 

SYMBOLGEN:  Macro variable PGM_TYPE resolves to qc

SYMBOLGEN:  Macro variable VALID_WH resolves to elig med rx qc export checks prv care onewagexport

MLOGIC(RUN):  %IF condition %eval(&pgm_type in &valid_wh.) = 0 is TRUE

 

 

 

SYMBOLGEN:  Macro variable PGM_TYPE resolves to qc

SYMBOLGEN:  Macro variable VALID_WH resolves to elig med rx qc export checks prv care onewagexport

MLOGIC(RUN):  %IF condition %eval(&pgm_type in &valid_wh.) = 0 is FALSE

 

Thanks,

Kayalvizhi

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star

The IN operator in macro language can be tricky (obviously?).  One possibility in the case you describe ... there will be a default value for the MINDELIMITER option.  If it's a blank, that would work when you restart your code since you have blanks between the items in your list.  But if your earlier code re-set the MINDELIMITER to some other character, the logic would no longer find a match.

View solution in original post

2 REPLIES 2
Astounding
PROC Star

The IN operator in macro language can be tricky (obviously?).  One possibility in the case you describe ... there will be a default value for the MINDELIMITER option.  If it's a blank, that would work when you restart your code since you have blanks between the items in your list.  But if your earlier code re-set the MINDELIMITER to some other character, the logic would no longer find a match.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 862 views
  • 1 like
  • 2 in conversation