BookmarkSubscribeRSS Feed
nsabhyankar
Fluorite | Level 6

Hello experts,

 

I am trying to import an R model into SAS via PMML. I am using the proc pscore.

However, I am getting an error since a variable name is longer than 32 characters.

 

ERROR: Variable Predicted_PDO_I_CUS_COMPLEX_BAD_1 has length greater than 32. Use Replace Feature to execute.

 

‘PDO_I_CUS_COMPLEX_BAD_1’ is the target variable in the R model.

 

The error message talks about a ‘replace feature’ which can be used. I couldn’t find the relevant documentation about this feature.

Could anyone point me to the same? What exactly it does and how does it work?

 

Does it allow the use of a variable with a longer name?


Can a model have a long variable name if we use the replace feature or is it advisable that we use a shorter name to accommodate the ‘Predicted_’ tag?

 

Kindly let me know if any more details are needed.

 

 

1 REPLY 1
Rick_SAS
SAS Super FREQ

I'm not positive, but it sounds like "replace feature" just means to use a text editor and use the find/replace dialog box to replace your long variable name with a shorter one. For example, you can replace

PDO_I_CUS_COMPLEX_BAD

with

PDO_I_CUS_CPLX_BAD

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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