Check the documentation of the line-statement in proc report. Using it has been explained in so many papers and posts, you surely find something appropriate.
proc format;
value sex 1="Males" 2="Females" ;
run;
proc report data=have nowd;
define a / display '' format=sex.;
define b / display 'b';
compute before ;
line @1 'sex';
endcomp;
run;
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!