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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.