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 (May 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 24 May 2006 16:16:23 -0400
Reply-To:     David Ryerson <ryersond@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David Ryerson <ryersond@YAHOO.COM>
Subject:      Re: Best. informat in input function?

Thanks to all who responded to my question...very informative.

Gerhard - your response:

And the informat, if BEST10. or 10. is not too important, but don't use 10.2:

106 data test; 107 a="11.345"; 108 x=input(a,10.2); 109 put _all_; 110 a="11345"; 111 x=input(a,10.2); 112 put _all_; 113 run;

really helped. I finally realized what my problem was before I posted the question in the first place. Initially I was using:

numval=input(charval,10.3);

thinking that the "3" in "10.3" was covering me for 3 decimal places rather then dividing my value by 10^3. I was unaware that informats worked like this.

Then I switched to best. to solve my problem, but as you (and others) have mentioned 10. should work well too.

You've also opened my eyes to some other issues with your post that I fortunately don't have to deal with at the moment.

Thanks again.


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