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 (January 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 5 Jan 2007 20:58:34 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: Problem with missing statement
Comments: To: nirad.p@GMAIL.COM
In-Reply-To:  <1168029899.236347.165110@42g2000cwt.googlegroups.com>
Content-Type: text/plain; format=flowed

Nirad ,

I think you are missing ( pun not intended ) the point that you are only assigning Price_Org when Year is 2000, it gets assigned a missing value for the rest of the years.

Now perhaps you can back up and let us know what you are attempting to do with this code and we can better help you.

Toby Dunn

To sensible men, every day is a day of reckoning. ~John W. Gardner

The important thing is this: To be able at any moment to sacrifice that which we are for what we could become. ~Charles DuBois

Don't get your knickers in a knot. Nothing is solved and it just makes you walk funny. ~Kathryn Carpenter

From: "nirad.p@gmail.com" <nirad.p@GMAIL.COM> Reply-To: "nirad.p@gmail.com" <nirad.p@GMAIL.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: Problem with missing statement Date: Fri, 5 Jan 2007 12:44:59 -0800

Dear Frinds, I am new comer in SAS.I have created a program but program give me problem with missing values.My code is below

DATA FINAL(keep = state year qtr price diff) ; SET QUATER; IF ( year = 2000 ) THEN price_org = price; else if ( 2001 <= year <= 2006 ) then do; diff = price - price_org ; end; output; RUN;

Here statement price_org = price; gives me a missing value.here price has value but is can not assign value to price_org .Can any one tell y it happends.Wat i have to do .

thanks, Nirad

_________________________________________________________________ Your Hotmail address already works to sign into Windows Live Messenger! Get it now http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview


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