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

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 464 views
  • 0 likes
  • 3 in conversation