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 (March 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 22 Mar 2002 12:00:54 -0500
Reply-To:   Quentin McMullen <QuentinMcMullen@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Quentin McMullen <QuentinMcMullen@WESTAT.COM>
Subject:   Re: Proc Sql and INTO macro variable Value
Content-Type:   text/plain; charset="iso-8859-1"

Dennis Diskin (and many others) have already explained:

> The default format for all numeric variables in SAS is BEST8. > When you tell SQL to put something INTO a macro variable, it > must convert > it to a character string and so if you don't say otherwise, uses the > default format. > Usually this is fine but in your case you need to supply a format eg. > best12. would work.

Given that, I think I'd be happier to see SAS put a NOTE: to the log when it does the automatic numeric to character conversion for INTO, as done with automatic conversions in a data step. If there had been such a NOTE: (and actually I'd prefer a WARNING:), it might have pointed Francesco towards a solution. But I don't use SQL much, so don't know if this is a silly idea. Any thoughts?

--Quentin


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