BookmarkSubscribeRSS Feed
harsh0404
Fluorite | Level 6

hi, 

I ran a model in SAS Enterprise miner and got the scoring code. Now I am running it through a file to be scored and i am facing a problem here. 

data xyz ; 

set abc ; 

if var1 ="Donor's G; ift Amount Qual; ified" then var2 = P_INTERACTIONSUBCATEGORY48 ; 
if var1 ="Donor would like a renewal sent to them" then var3= P_INTERACTIONSUBCATEGORY48 ; 

run ; 

 

Now its not running. how do i tell sas to ignore semicolon in the the middle of string value or treat everything in " " as one full string ?

 

1 REPLY 1
Reeza
Super User

It should do that by default. Post your code AND log to indicate what error or issue you're having.

 


@harsh0404 wrote:

hi, 

I ran a model in SAS Enterprise miner and got the scoring code. Now I am running it through a file to be scored and i am facing a problem here. 

data xyz ; 

set abc ; 

if var1 ="Donor's G; ift Amount Qual; ified" then var2 = P_INTERACTIONSUBCATEGORY48 ; 
if var1 ="Donor would like a renewal sent to them" then var3= P_INTERACTIONSUBCATEGORY48 ; 

run ; 

 

Now its not running. how do i tell sas to ignore semicolon in the the middle of string value or treat everything in " " as one full string ?

 


 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 283 views
  • 0 likes
  • 2 in conversation