I'm confused...what do you want to CREATE??? NAME, XBB or XCC??? I am guessing that you are getting a message like this:
NOTE: Invalid numeric data, 'XXXYYY' , at line 1 column 12.
someplace in your log???
When you want/need to compute a character variable, you have to tell PROC REPORT -- normally, it wants computed variables to be numeric. The way you tell PROC REPORT is in the COMPUTE block:
COMPUTE NAME / CHARACTER length=8;
NAME = trim(xc)||' '||trim(xb);
Do note that the length specified should be equal to the longest value for XC plus the longest value for XB plus 1 for the space in between -- I just picked 8 arbitrarily because of your test data -- but your real data may be longer.
Also, you have XBB and XCC in DEFINE Statements, but not in the COLUMN statement -- this should be showing you this warning in the LOG:
WARNING: xbb is not in the report definition.
WARNING: xcc is not in the report definition.
and the fix for this is to put these 2 computed items in the COLUMN statement or remove the DEFINE statements if you don't need them once you get NAME working.
ps...or you can concatenate the variables ahead of time in a DATA step program.
ods pdf file='c:\test.pdf' style=journal;
proc report data=sashelp.class nowd ;
column name sex weight merge;
define name /'Name';
define sex /'Sex' ;
define merge/'Name and Sex' computed;
compute merge / character length=100;
ods pdf close;