Date: Fri, 15 Jan 1999 11:14:12 -0500
Reply-To: Victor Kamensky <kamensky@AECOM.YU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Victor Kamensky <kamensky@AECOM.YU.EDU>
Subject: Re: Reordering variables in a new data set
Content-Type: text/plain; charset="us-ascii"
>Well, true - but that's a very tedious method - and assumes that you
>actually know what the labels have to be!
Yes, it is tedious if no labels exist,
but if labels do exist in a text file, putting if before
SET can provide a convenient method to control
order of existing and new variables.
But even if labels do not exist, it takes
seconds do produce labels like :
label var1='var1';
using PROC CONTENTS output data set.
(it is a very simple program, I can post it if
someone is interested. I usually use it to produce
"raw" labels, which could later be easily retyped
inside quotation marks).
>As far as I can recall, you can also achieve the same with ATTRIB or ARRAY
>statements (as well as LENGTH and RETAIN), provided they appear before the
I am not sure about ARRAY. What if you have to mix order of numeric
and character variables?
Victor Kamensky
Programmer
Albert Einstein College of Medicine.
At 03:50 PM 1/15/99 +0000, you wrote:
>At 10:27 15/01/99 -0500, Victor Kamensky wrote:
>>There is another way!
>>Not a big difference, but LABEL can be used instead of RETAIN.
>
|