BookmarkSubscribeRSS Feed
nadra
Calcite | Level 5
Hi,

I submit my a program in sas 9.2 to a server, in order to minimise time runing. this program contain a Glm procedure. I used the ods output to keep only some measures like this :
ODS output CLDiffs=Diff(keep = Comparison LowerCL Difference UpperCL Significance);
proc glm data=table;
class var1 var2;
model var3=var1 var2 / ss3;
MEANS var3 / lsd cldiff lines;
run;quit;
ods output close;


My problem is that "comparison" is forced to be written in an $5. format. This is a problem to me, because comparison contains more than 5 characters.


When I run my program on my computer, there is no problem comparison is not limited to 5 characters.


I wonder if someone can help me to know why this problem occurs !

thanks
thank Message was edited by: nadra
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi,
The table template for your output object is usually what controls the formats and labels of the output created by the ODS OUTPUT statement.

If you search on support.sas.com for examples of altering the table template for a STAT procedure you should find some examples that suit your purpose.

Cynthia
nadra
Calcite | Level 5
Thank you very much!

Thanks to your advice I have found the solution to the problem!

kind regards, Message was edited by: nadra

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 2 replies
  • 683 views
  • 0 likes
  • 2 in conversation