Date: Wed, 31 Jan 2001 12:19:59 -0500
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: Change Column Position
On Thu, 1 Feb 2001 00:14:19 +0800, CWF <wf_cheung@YAHOO.COM> wrote:
>I would like to ask which SAS command can change the position of column
>within a dataset.
>e.g. Original: Variable Sequence A, B, C, D
> After Change: Variable Sequence B, D, C, A
As far as I know there is no simple command for that. You can create a new
empty dataset with your new sequence of variables (e.g. with a LENGTH
statement), then append your old one to the new one.
But why you want to do that? There is no reason for that!