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.
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.