home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / sasl / 5550 < prev    next >
Encoding:
Text File  |  1993-01-07  |  3.0 KB  |  75 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!auvm!CORNELLA.BITNET!LMJY
  3. X-Acknowledge-To: <LMJY@CORNELLA>
  4. Message-ID: <SAS-L%93010710413719@UGA.CC.UGA.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Thu, 7 Jan 1993 10:31:28 EST
  7. Reply-To:     Lisa King <LMJY@CORNELLA.BITNET>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         Lisa King <LMJY@CORNELLA.BITNET>
  10. Subject:      Division by Zero in CMS
  11. Lines: 62
  12.  
  13. Hi SAS Gurus:  I've been off the list for a few months, so please forgive
  14. me if this problem is old hat.  Consider the following simple SAS program
  15. which I ran under SAS 6.07 under CMS:
  16.  
  17.                DATA;
  18.                  INPUT X Y;
  19.                  Z=X/Y;
  20.                  CARDS;
  21.                1 1
  22.                1 0
  23.                1 1
  24.                ;
  25.  
  26. And take a look at the SASLOG:
  27.  
  28.  NOTE: SAS initialization used 0.57 seconds and 781K.
  29.  NOTE: 5568K of contiguous memory remained unallocated.
  30.  1          DATA ONE;
  31.  2            INPUT X Y;
  32.  3            Z=X/Y;
  33.  4            CARDS;
  34.  
  35.  NOTE: The data step has been abnormally terminated.
  36.  NOTE: The data set WORK.ONE has 1 observations and 3 variables.
  37.  NOTE: DATA statement used 0.27 seconds and 512K.
  38.  NOTE: 5108K of contiguous memory remained unallocated.
  39.  
  40.  8          ;
  41.  
  42.  NOTE: Viobuf storage reached 25 percent full.
  43.  NOTE: The SAS session used 0.88 seconds and 1338K.
  44.  NOTE: 5108K of contiguous memory remained unallocated.
  45.  NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
  46.  
  47.      Am I crazy, or is this an absurd result?  A colleague of mine
  48. just lost two days of work trying to figure out why his data step was
  49. "abnormally" terminating.  This same program, when run under SAS 5.18,
  50. produces a note about the value of Z being set to missing due to
  51. division by zero, but the data set completes.
  52.  
  53.      If any of you can shed some light on this, please help me out.
  54. I have combed the FM's and all I can find is a passage in the SAS
  55. Language Guide (v.6 ed.) on page 121 which reads:
  56.  
  57.      "If you try to perform an illegal operation (for example, dividing
  58.       by zero, taking the logarithm of zero, or using an expression
  59.       to produce a number too large to be represented as a floating-
  60.       point number known as overflow), the SAS System prints a warning
  61.       message and assigns a missing value to the result."
  62.  
  63.      Bug? Feature?  Is there any way to override this ridiculous problem?
  64.  
  65.                           Thanks for any and all suggestions,   Lisa
  66.  
  67. |***************************************************************|
  68. |           Lisa King  -  Technical Consultant                  |
  69. |  Cornell Institute for Social and Economic Research (CISER)   |
  70. |       Cornell University, Ithaca, New York  14853             |
  71. |                                                               |
  72. |  Bitnet:    LMJY@CORNELLA                                     |
  73. |  Internet:  LMJY@CORNELLA.CIT.CORNELL.EDU                     |
  74. |***************************************************************|
  75.