home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!overload.lbl.gov!zeus.ieee.org!europa.asd.contel.com!paladin.american.edu!auvm!CCM.HF.INTEL.COM!BERT_CAVE
- Message-ID: <921109083300_1@ccm.hf.intel.com>
- Newsgroups: bit.listserv.sas-l
- Date: Mon, 9 Nov 1992 08:33:00 PST
- Reply-To: Bert Cave <Bert_Cave@CCM.HF.INTEL.COM>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Bert Cave <Bert_Cave@CCM.HF.INTEL.COM>
- Subject: Re: help needed on division by zero
- Comments: To: Thomas_M_Skinner@ccm.hf.intel.com, SAS-L@uga.cc.uga.edu
- Lines: 21
-
- On the quesion below, you should familiarize yourself with
- the display manager, so you can play with code and test
- logic bites such as this. The answer is that it sets A to
- missing and puts out an error message.
- ==========================================================
- Could someone tell me what SAS does when you specify a
- statement such as
- A = B/C
- and the values of variable C could be either 0 or missing.
- I know SAS gives an error message but does it set the values
- of A to missing or do you have to ensure this by specifying a
- preceding statement such as
- if C= 0 or C=. then A = .; else A=B/C ;
- I know the second will work but I am curious to know what would
- happen if one just specified A=B/C without providing for the case
- when C=0 or missing.
- ALSO what would happen if you say
- If C=0 or . then A=.; else A=B/C;
- Any suggestion will be appreciated.
- Uma
- SUMA@CLEMSON
-