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 (November 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Nov 2004 11:54:15 -0800
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: length of numeric variable
Comments: To: seema <wormpai@HOTMAIL.COM>

Seema -

Practical advice - Keep it a character variable, or break it into two sixteen digit numbers.

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of seema Sent: Monday, November 08, 2004 11:58 AM To: SAS-L@LISTSERV.UGA.EDU Subject: length of numeric variable

Hi,

I am converting a charater variable with the length of 35 to a numeric one. I use the command "newvar=input(oldvar, 35.)". The log says the width specified is invalid. When I use the command "newvar=input(oldvar, 32.)", the log seems fine but the number is actually truncated. What is wrong here?

Thanks.


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