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 18:56:36 -0400
Reply-To:     S David Riba <dave@JADETEK.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         S David Riba <dave@JADETEK.COM>
Subject:      Re: LABEL question
Content-Type: text/plain; charset="iso-8859-1"

As Ian Whitlock and John Whittington so patiently explained, Nicolas Pont's request can not be done during the EXECUTION of the data step because labels are assigned at COMPILE time. Sorry to say I can't use the excuse of jet lag, since I *drove* back from SUGI 24. However, here is an example (tested this time) that will do what Nicolas wants without the use of macros:

data _null_ ; ARRAY sal(13) $4 _temporary_ ; call execute('DATA test ;') ; call execute('ARRAY sal(13) $4 sal1 - sal13 ;') ; call execute('LABEL ') ; do i=1 to dim(sal) ; text = 'sal' || left(put(i,8.)) || '= "TEST"' ; call execute(text) ; end; call execute('; run ;') ; stop ; run ;

Any questions?

---------------------------------------------------------------------------- S. David Riba INTERNET: dave@JADETEK.COM JADE Tech, Inc. http://www.jadetek.com P O Box 4517 Clearwater, FL 33758 VOICE: (727) 726-6099 A SAS Institute Quality Partner

SAS. It's not just an attitude


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