BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Sikcion
Fluorite | Level 6

Hi guys! I have one question about "break after" statement:

I want to create a table like below:

Screenshot 2024-01-01 at 4.34.28 PM.png

 

and here is my code:

proc report data=table12 nowindows headline headskip spacing = 10 style(header)={nobreakspace=on};
columns AVISITN_1 Trt01a count mean_se;
define AVISITN_1/group order=data center width =20 " Test Day " style(column)={just=c};
define Trt01a /display center width=10 "Treatment" ;
define count / display center width =14 "N";
define mean_se /display center width = 40" Adjusted Mean(SE)";
title1 bold "Table11";
title2 bold "Summary od Blood Glucose Level over time";
title3 bold "ITT Subjects";

compute after AVISITN_1;
line " ";
endcomp;

compute after ;
line @3 %sysfunc(repeat(——, 55));
line @3 "Adjusted mean is calculated using PROC MIXED stage as factor and treatment.";
endcomp;
run;
ods pdf close;

 

 

and my output:

Screenshot 2024-01-01 at 4.35.02 PM.png

 I found even though I add :

compute after ;
line @3 %sysfunc(repeat(——, 55));

there is no line above the "Adjusted mean is calculated using PROC MIXED stage as factor and treatment."

Thanks for your help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
data table12;
set sashelp.heart(obs=10);
run;

ods pdf file='c:\temp\temp.pdf';
proc report data=table12 nowindows headline headskip spacing = 10 style(header)={nobreakspace=on};
columns status weight ageatstart height;
define status/group order=data center width =20 " Test Day " style(column)={just=c};
define weight /display center width=10 "Treatment" ;
define ageatstart / display center width =14 "N";
define height /display center width = 40" Adjusted Mean(SE)";
title1 bold "Table11";
title2 bold "Summary od Blood Glucose Level over time";
title3 bold "ITT Subjects";

compute after status;
line " ";
endcomp;

compute after ; 
line @3 "(*ESC*){style [textdecoration=overline] Adjusted mean is calculated using PROC MIXED stage as factor and treatment.                }";
endcomp;
run;
ods pdf close;

Ksharp_0-1704169997521.png

 

View solution in original post

2 REPLIES 2
Ksharp
Super User
data table12;
set sashelp.heart(obs=10);
run;

ods pdf file='c:\temp\temp.pdf';
proc report data=table12 nowindows headline headskip spacing = 10 style(header)={nobreakspace=on};
columns status weight ageatstart height;
define status/group order=data center width =20 " Test Day " style(column)={just=c};
define weight /display center width=10 "Treatment" ;
define ageatstart / display center width =14 "N";
define height /display center width = 40" Adjusted Mean(SE)";
title1 bold "Table11";
title2 bold "Summary od Blood Glucose Level over time";
title3 bold "ITT Subjects";

compute after status;
line " ";
endcomp;

compute after ; 
line @3 "(*ESC*){style [textdecoration=overline] Adjusted mean is calculated using PROC MIXED stage as factor and treatment.                }";
endcomp;
run;
ods pdf close;

Ksharp_0-1704169997521.png

 

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
  • 1220 views
  • 0 likes
  • 3 in conversation