BookmarkSubscribeRSS Feed
aprilewilson
Calcite | Level 5

I'm using the score export node in EM and it's truncating a long variable from 200 characters to 32, as per the system default. Where is the setting in EM to change this? I've searched online and clicked on about everything in the program and short of editing the output code to force 200 characters in the dummy variable the score creates, I'm not sure what to do.

 

Hoping there's a setting I can change because otherwise I have a long few days of manual coding ahead of me.

 

snippet of code that's making me angry in the SAS EM Score Output code:

else do;
length _dm32 $ 32; drop _dm32 ;
%DMNORMCP( combo , _dm32 )

if _dm32 = '36415_NATIONAL GOVERNMENT SERVIC' then do;
_6_436 = 1;
end;

 

that variable should be '36415_NATIONAL GOVERNMENT SERVICES, INC.'

 

Thanks.

 

1 REPLY 1
Reeza
Super User

This looks like a variable value not name. 

Check the original data you used to create your model and make sure that import was done correctly. 

 

Worse case scenario - truncate your new data to the length required. If this doesnt result in unique data you have an issue both with your scoring code and model. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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