From: Bala on
Hi

I have a SAS dataset with variables COL1, COL2 etc. The number of
these can vary.

I want to concatenate all of then into a new COL variable.

Can you help.
From: Alex_DPC on
On Apr 1, 1:19 am, Bala <bsu...(a)gmail.com> wrote:
> Hi
>
> I have a SAS dataset with variables COL1, COL2 etc. The number of
> these can vary.
>
> I want to concatenate all of then into a new COL variable.
>
> Can you help.

Check out cat(), cats(), catt() and catx() in the documentation. One
of these functions will likely get the job done.
Cheers,
Alex
From: Patrick on
col=cats(of col:);

cats() will 'cut off' both leading and trailing blanks. Look up the
different cat functions in case you need it different.
 | 
Pages: 1
Prev: Data Cleaning with SAS
Next: DateTime field