home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!CLEMSON.BITNET!SUMA
- Message-ID: <SAS-L%92110915291404@AWIIMC12.IMC.UNIVIE.AC.AT>
- Newsgroups: bit.listserv.sas-l
- Date: Mon, 9 Nov 1992 09:27:00 EST
- Reply-To: SUMA@CLEMSON.BITNET
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: SUMA@CLEMSON.BITNET
- Subject: help needed on division by zero
- Lines: 16
-
- 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
-