Date: Mon, 7 Apr 1997 12:05:48 PDT
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
Subject: Re: rounding error or anything else?
Pok, It is my opinion that SAS is not very good for working with financial data.
On the other hand, I do not understand your program. I have never seen the
INPUT function used without an explicit format. The manual also specifically
cautions against calling INPUT with numeric arguments. There is a slight
difficulty (probably a typo) when you read in AMT1-AMT, rather than AMT1-AMT3.
I suspect that if you change your program to create an output dataset and run
PROC CONTENTS on it, you will find that both T and TEST are character variables,
but I do not see how that will produce the results you report.
Tim Berryhill - Contract Programmer and General Wizard
TWB2@PGE.COM or http://www.aartwolf.com/twb.html
Frequently at Pacific Gas & Electric Co., San Francisco
The correlation coefficient between their views and
my postings is slightly less than 0
----------------------[Reply - Original Message]----------------------
Sent by:"Chan, Pok" <pokchan@WELLSFARGO.COM>
I have a very simple program but the output is a little bit confuse to me.
Here is the program and result:
input pay1-pay3 amt1-amt p a;
put pay= amt= test= p= a= t=;
604.64 4733.77 586.59 15 95 15 5925 125
pay=5925 amt=125 test=4739 p=5925 a=125 t=4740
I run this program on both mainframe machine and Unix machine.
Why value for test is deferent for t on mainframe machine?
why same value for test and t if I run this program on Unix?
Thanks for you help.