home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / sasl / 4979 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.5 KB  |  34 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. 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
  3. Message-ID: <921109083300_1@ccm.hf.intel.com>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Mon, 9 Nov 1992 08:33:00 PST
  6. Reply-To:     Bert Cave <Bert_Cave@CCM.HF.INTEL.COM>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         Bert Cave <Bert_Cave@CCM.HF.INTEL.COM>
  9. Subject:      Re: help needed on division by zero
  10. Comments: To: Thomas_M_Skinner@ccm.hf.intel.com, SAS-L@uga.cc.uga.edu
  11. Lines: 21
  12.  
  13. On the quesion below, you should familiarize yourself with
  14. the display manager, so you can play with code and test
  15. logic bites such as this.  The answer is that it sets A to
  16. missing and puts out an error message.
  17. ==========================================================
  18. Could someone tell me what SAS does when you specify a
  19. statement such as
  20. A = B/C
  21.  and the values of variable C could be either 0 or missing.
  22. I know SAS gives an  error message but does it set the values
  23. of A to missing or do you have to ensure this by specifying a
  24. preceding statement such as
  25. if C= 0 or C=. then A = .; else A=B/C ;
  26. I know the second will work but I am curious to know what would
  27. happen if one just specified A=B/C without providing for the case
  28. when C=0 or missing.
  29. ALSO what would happen if you say
  30. If C=0 or . then A=.; else A=B/C;
  31. Any suggestion will be appreciated.
  32. Uma
  33. SUMA@CLEMSON
  34.