Hi:
I'm not sure what you mean by "fold data ... into one column". I think you mean to concatenate or stack variables (which would normally appear in separate columns) into one column. There are 3 methods of doing this: 1) PROC REPORT COMPUTE block; or 2) DATA step program or 3) TABLE template -- depending on your procedure of choice. See the program example below, it illustrates the PROC REPORT technique.
Again, not sure what you mean by the "Enter" key??? Do you mean that you want to insert a line break within the values displayed in a column on a report??? Inserting a LINE FEED (or NEW LINE or CARRIAGE RETURN) character can be accomplished with ODS ESCAPECHAR techniques. Again, see the program example below (which shows the use of ODS ESCAPECHAR='^') and this paper:
http://www2.sas.com/proceedings/forum2007/099-2007.pdf
cynthia
[pre]
ods rtf file='mult_col.rtf';
ods pdf file='mult_col.pdf';
ods escapechar='^';
proc report data=sashelp.class nowd;
column name sex age height show3 weight;
define name / order;
define sex / display noprint;
define age / display noprint;
define height / display noprint;
define show3 / computed 'Computed Show3';
define weight / display;
compute show3 / character length=50;
length tempvar $50;
tempvar = 'Gender: '||trim(sex)||' -- Age: '||put(age,2.0)||'^n'||
'Height: '||left(put(height,6.1));
show3 = tempvar;
endcomp;
run;
ods _all_ close;
[/pre]