Date: Thu, 15 Apr 1999 09:26:15 -0700
Reply-To: Carla J Mast <Carla.J.Mast@AEXP.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Carla J Mast <Carla.J.Mast@AEXP.COM>
My guess is that you can't assign labels to array variables, as the variables
are only in effect during the data step. I believe you'd have to assign
permanent names to the variables, then you could label them.
HTH,
Carla
From: Nicolas.Pont%UNICIBLE.CH@Internet on 04/15/99 09:01 AM MST
To: SAS-L%UGA.CC.UGA.EDU@Internet
cc: (bcc: Carla J Mast)
Subject:
Hello
Somebody could help me ?
data test ;
array sal(13) $4 ;
do i=1 to 13 ;
sal(i)='' ;
end;
run ;
My data set test has 13 variables names SAL1-SAL13 initialized with blank
I would like to assign the same label to these 13 variables with a Do loop like
this :
data test ;
array sal(13) $4 ;
do i=1 to 13 ;
sal(i)='' ;
end;
do i=1 to 13 ;
label sal(i) = "TEST" ;
end ;
run ;
I would like to know the correctly syntax without using a MACRO
Thanks for help me