Is there a way to prevent my variables names from being truncated to 20 characters in the output?
data have;
set sashelp.bweight;
rename momwtgain = dont_truncate_this_var;
run;
proc glmselect data = have;
model weight = momage cigsperday dont_truncate_this_var;
run; quit;
My actual GLMSELECT statement uses stepwise selection and a CLASS statement, so I'd prefer to stick with GLMSELECT if possible.
What output? Are you saying that the print-out generated by PROC GLMSELECT is showing only the first 20 characters of that variable name? What part of the print-out?
Or are you generating an output dataset from that PROC? I don't see where you are specifying any output datasets in your code.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.