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 (October 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 28 Oct 2005 06:39:10 -0700
Reply-To:     Toby <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Toby <tobydunn@HOTMAIL.COM>
Subject:      Re: Resetting numeric variable length
Comments: To:
In-Reply-To:  <>
Content-Type: text/plain; charset="iso-8859-1"

Ali G,

Well you could do it but you might lose some precision on your numeric vars. But that is your call you know your data better than I.

data one ; infile cards ; input num ; cards ; 1 12 123 1234 12345 123456 1234567 12345678 1223456789 1.123456789 ; run ;

proc sql ; create table two as select num length = 5 from one ;

select num from two ;

quit ;

proc contents data = two ; run ;

Toby Dunn

Is there any other way to reset a numeric variable length other than by

this method?:

data a; length myvar 5; set a; run;

Using 8.2 on z/os.

Many thanks.

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