BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RobertWF1
Quartz | Level 8

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;
1 ACCEPTED SOLUTION
4 REPLIES 4
maguiremq
SAS Super FREQ

This probably provides a better explanation than I can. I know other PROCs have things like PARMLABEL and what not.

RobertWF1
Quartz | Level 8
Thanks Michael - this is helpful although looks like it applies to name literals.

I'm trying something along the lines of:

ods trace on;
proc genmod data=test;
model y = very_long_variable_name;
ods output ParameterEstimates=reg_output (length Parameter $ 32);
run;

But so far this isn't working.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1123 views
  • 6 likes
  • 3 in conversation