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 (April 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 16 Apr 1998 02:27:17 GMT
Reply-To:     kurt_beckman@earthlink.net
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Kurt Beckman <kurt_beckman@EARTHLINK.NET>
Organization: All USENET -- http://www.Supernews.com
Subject:      Re: decimal informat mystery
Content-Type: text/plain; charset=us-ascii

Date: Wed Apr 15, 1998 1925 PDT Subject: decimal informat mystery Summary: Like This? From: Kurt Beckman (kurt_beckman@earthlink.net) To: rturner@SCOTEQ.co.uk

Dear rturner@SCOTEQ.co.uk:

On Wed, 15 Apr 1998 12:02:31 -0600, in <6h2p76$48l$1@nnrp1.dejanews.com> you wrote:

>Does anyone know if there is an informat to read 12345 from a flat file into >SAS as 123.45... snippy-snip...

9 data _null_ ; 10 infile datalines ; 11 input numvar 5.2 ; 12 list ; 13 put numvar= ; 14 datalines ;

NUMVAR=123.45 RULE:----+----1----+----2----+----3----+----4----+----5----+----6----+----7---- +----8----+----9- 15 12345 NOTE: The DATA statement used 0.05 seconds.

16 ;; 17 run ;

I hope this information will be of some help to you. If there are any questions please do not hesitate to contact me at the numbers listed below.

Sincerely

Kurt D. Beckman SAS Consultant 553 N. Pacific Coast Hwy, Suite B288 Redondo Beach, California 90277 Voice: 310-318-5291 Fax: 310-318-6220 Cellular: 310-486-4447 E-Mail: kurt_beckman@earthlink.net 102146.2003@compuserve.com


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