LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 8 Feb 1999 22:08:17 +0100
Reply-To:     "denko000.@wxs" <ela.denko@WXS.NL>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         "denko000.@wxs" <ela.denko@WXS.NL>
Organization: World Access / Planet Internet
Subject:      Re: pimpy question
Content-Type: text/plain; charset=us-ascii

Sally, because total has the value missing. There are many possebilities to solve this "problem" Paul

Sally McDonald wrote: > > Hello again user group, just a simple question that I wouldn't mind a good > explanation to. If I have a variable called COST: > > COST > 23 > 98 > 35 > > and I do the statement: > 1)TOTAL+COST; > to accummulate the values of cost in a variable called TOTAL. Why won't the > statement: > 2)TOTAL=TOTAL+COST; > give me the same result. > I know the PDV sets all new variables created to missing at each execution > of the datastep, but surely given this, this would also occur for the first > statement, i.e. TOTAL+COST; where the previous value of TOTAL would not be > retained but set to missing every time the datastep is iterated?? > > Can anyone explain this to me? > Thank-you > Sally


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