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

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

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
  • 355 views
  • 0 likes
  • 2 in conversation