Wait a minute, do you have many fields to be concatenated into one field or one field with many rows to be concatenated into one field in one row?
What I had before is for the first case, oneVar is the concatenated variable name.
For second case, proc transpose would convert it into one row many fields. Then this becomes first case.
If you have second case, but want to output to an external file in one long string, you can try the following:
data_NULL_;
set yourSet;
file 'yourpath/yourFile' dsd delimiter = ";";
put yourfield @;
run;