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 (June 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 4 Jun 2002 10:20:28 +0200
Reply-To:     Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Comments: To: mohandas sundareswaran <macmohan_das@HOTMAIL.COM>
Content-Type: text/plain

Hi Mohandas,

I think you should use the compound name (varname.sum) with ANALYSIS variables and you should not use that form with COMPUTED variables. So, in your case it probably should be the last form with the compound names. But I would experiment with it.

Regards - Jim. -- Y. (Jim) Groeneveld, MSc IMRO TRAMARKO tel. +31 412 407 070 senior statist./data man. P.O. Box 1 fax. +31 412 407 080 J.Groeneveld@ITGroups.com 5350 AA BERGHEM, NL www.imrotramarko.com

Computers aren't there to be kept busy, but to keep us busy.

Notice of confidentiality: this e-mail may contain confidential information intended for the addressed recipient only. If you have received this e-mail in error please delete this e-mail and please notify the sender so that proper delivery can be arranged.

-----Original Message----- From: Sundareswaran Mohan [SMTP:Mohan.Sundareswaran@kohler.com] Sent: Monday, June 03, 2002 10:46 PM To: 'Jim Groeneveld' Subject:

Hi Jim, I had a question ? while using proc report can i do a compute as below

Define Chg_Cost_Py /computed Format =7.; Compute Chg_Cost_Py; if Pytd_Cost ne 0 then Chg_Cost_Py = (Cytd_Cost - Pytd_Cost)*100/Pytd_Cost; /*AC*/ else Chg_Cost_Py =0; endcomp; or do i need to do it as below Define Chg_Cost_Py /computed Format =7.; Compute Chg_Cost_Py; if Pytd_Cost.sum ne 0 then Chg_Cost_Py = (Cytd_Cost.sum - Pytd_Cost.sum)*100/Pytd_Cost.sum; /*AC*/ else Chg_Cost_Py =0; endcomp;

Could you please let me know

Mohandas Sundareswaran 920 - 457-4441 ext :71128

> -----Original Message----- > From: mohandas sundareswaran [SMTP:macmohan_das@HOTMAIL.COM] > Sent: Monday, June 03, 2002 10:46 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: > > Hi, > > I had a question ? > > while using proc report can i do a compute as below > > Define Chg_Cost_Py /computed Format =7.; > Compute Chg_Cost_Py; > if Pytd_Cost ne 0 then > Chg_Cost_Py = (Cytd_Cost - > Pytd_Cost)*100/Pytd_Cost; /*AC*/ > else > Chg_Cost_Py =0; > endcomp; > > or do i need to do it as below > > Define Chg_Cost_Py /computed Format =7.; > Compute Chg_Cost_Py; > if Pytd_Cost.sum ne 0 then > Chg_Cost_Py = (Cytd_Cost.sum - > Pytd_Cost.sum)*100/Pytd_Cost.sum; /*AC*/ > else > Chg_Cost_Py =0; > endcomp; > > Could you please let me know > > Keep Smiling > > Mohandas Sundareswaran > _____ > > Send and receive Hotmail on your mobile device: Click Here > <http://g.msn.com/1HM303401/38> >


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