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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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