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:         Tue, 20 Apr 1999 08:40:54 +0100
Reply-To:     Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Subject:      Re: Using variable titles to create new variables.
In-Reply-To:  <199904191756.SAA11190@mail-relay.power.net.uk>

Hello John,

I seem to look at these challenges as "incomplete definitions".

I'm always expecting additional requirements: adding a few vars to this array statement should be simple enough; adding further referencing ( like setting all to zero ) is very simple; generating lists of variables on an automated basis from meta data is simpler when their usage is simplest (eg. as array element var lists)

There are, as you imply, overheads: the extra statement, and the definition and usage of the array.

I find those issues tolerable for more generalised availability.

And *of course* it is always great to be offering novel ideas !

Regards

John Whittington <medisci@powernet.com> writes >At 18:07 19/04/99 +0100, Peter Crawford wrote: > >>where you want to use a non-consecutive set of variables, associate them >>with an array statement and use similar logic, with the array notation >> array listA{*} a4 a3 b3 b4 ; >> if sum( of listA{*} ) then c4 = 1; > >Indeed - but that only makes sense if you intend to use the same 'list' of >variables more than once. Otherwise, it would involve less typing to put >the list of variables as the argument of the SUM function, rather than in >the ARRAY statement! > >Regards, > >John > >---------------------------------------------------------------- >Dr John Whittington, Voice: +44 (0) 1296 730225 >Mediscience Services Fax: +44 (0) 1296 738893 >Twyford Manor, Twyford, E-mail: medisci@powernet.com >Buckingham MK18 4EL, UK mediscience@compuserve.com >---------------------------------------------------------------- >

-- Peter Crawford (_knowledge_ is a poor substitute for *real* experience, but they make a great team)


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