Date: Sat, 5 May 2012 13:41:02 +0000
Reply-To: "Zdeb, Michael S" <mzdeb@ALBANY.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Zdeb, Michael S" <mzdeb@ALBANY.EDU>
Subject: Re: What is the safest format to use in the PUT function? XXXX
Content-Type: text/plain; charset="us-ascii"
Hi ... there was some recent discussion of this topic on the list. I agree with data _null_ ... HEX16.
Take a look at a test ... http://listserv.uga.edu/cgi-bin/wa?A2=ind1204D&L=sas-l&P=R8643
HEX16. retained the value of constant('pi') even over a numeric-2-character-2-numeric conversion
(same with 1/3 ).
U@Albany School of Public Health
One University Place (Room 119)
Rensselaer, New York 12144-3456
From: SAS(r) Discussion [SAS-L@LISTSERV.UGA.EDU] on behalf of Dan Abner [dan.abner99@GMAIL.COM]
Sent: Saturday, May 05, 2012 7:18 AM
Subject: What is the safest format to use in the PUT function? XXXX
This is most likely an elementary question, but:
If I am converting a large number of numeric variable values to
character values programmatically, what is the safest format to use in
the PUT function? In other words, the width and decimal precision of
these numeric variables may vary greatly and I don't want to
misrepresent any of them when they are converted to character values.