Prev: Data Cleaning with SAS
Next: DateTime field
From: Bala on 31 Mar 2010 19:19 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 1 Apr 2010 04:18 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 1 Apr 2010 19:01 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 |