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;
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.