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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.