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 (January 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 21 Jan 2009 02:14:40 -0800
Reply-To:     GuyA <guya.carpenter@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         GuyA <guya.carpenter@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: IFN function - strange behaviour
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

All interesting, thanks.

I didn't know there was a divide function. Just a quick test though to check to myself that it exists seemed to bring up an unusual result:

Code:

data test; input var1 var2; var3=divide(var1,var2); put var3; datalines; 1 2 2 1 0 0 0 1 1 0 ;

Output:

74 input var1 var2; 75 var3=divide(var1,var2); 76 put var3; 77 datalines;

0.5 2 . 0 I

The last observation output is not a number. It's the "pipe" character. And strangely, the variable was still numeric.

Any ideas?


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