LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page