For example, after running the following code I see that the variable "very_long_variable_name" gets cut off to "very_long_variable_n" in the Parameter column of the ParameterEstimates ods output datset.
Usually this isn't an issue, except in my current project I have several long variable names I'd like to retain. I've also noticed other SAS procedures such as proc means or proc reg don't truncate variable names in the ods output.
data test;
input y very_long_variable_name;
cards;
10 17
20 41
30 59
;
run;
ods trace on;
proc genmod data=test;
model y = very_long_variable_name;
ods output ParameterEstimates=reg_output;
run;
This probably provides a better explanation than I can. I know other PROCs have things like PARMLABEL and what not.
Use the NAMELEN= option.
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.