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