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
Diamond | Level 26
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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1269 views
  • 0 likes
  • 2 in conversation