Hi:
1) what is your destination of interest??? ODS HTML, RTF, PDF?? You do not show which destination you are interested in. CALL DEFINE with STYLE changes will not work in the LISTING window.
2) you show a change for STYLE(LINES) in your COMPUTE AFTER blocks for SEX and AGE, but you have no LINE statement -- STYLE(LINES) will only impact LINE statement output.
3) You are limited by the length of the variable in your assignment statement (such as where you want to concatenate the word TOTAL to the value for SEX or AGE. But there are 2 different issues, SEX has a length of 1 -- so you would have to make the length bigger or create a computed column for the SEX variable in SASHELP.CLASS and AGE is a numeric column and you can't assign a character string to a numeric variable. You should be seeing messages simlar to these in your LOG:
[pre]
NOTE: Groups are not created because the usage of Name is DISPLAY. To avoid this note, change
all GROUP variables to ORDER variables.
NOTE: Numeric values have been converted to character values at the places given by:
(Line):(Column).
2:24
NOTE: Character values have been converted to numeric values at the places given by:
(Line):(Column).
2:16
NOTE: Invalid numeric data, 'Total 11' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 12' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 13' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 14' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 15' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 11' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 12' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 13' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 14' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 15' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 16' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 11' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 12' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 13' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 14' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 15' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 11' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 12' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 13' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 14' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 15' , at line 2 column 16.
NOTE: Invalid numeric data, 'Total 16' , at line 2 column 16.
[/pre]
The NOTEs for "Invalid numeric data" are trying to tell you that you can't assign a text string to the column for AGE.
4) Also confused why you have GROUP as the usage for SEX and AGE, but then show each NAME?? The NOTE about changing the usage to ORDER tells you how to fix or get rid of that note.
cynthia