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;
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!