<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Array processing - Numeric to Character Conversion using a put statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203782#M37967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the crowd. A good proportion of the people I work with are not programmers. They mostly use just SQL and they always forget how to convert types. That's probably the #1 question they keep asking. Or used to be.&lt;/P&gt;&lt;P&gt;I wrote a to_number() function à la oracle for them for the same reason.&lt;/P&gt;&lt;P&gt;But I use cat() too: why bother with put(NUM, best32. -l) when it doesn't do a better job than cats (NUM)?&lt;/P&gt;&lt;P&gt;Sadly, we're moving onto EG soon though, so I suppose they'll like it better (we'll see how EG converts types) while the more confirmed SAS users will have to endure EG's interface (I know I know, many people here like EG for some reason I cannot fathom). SAS Studio will ease the pain somewhat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 11:03:33 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2015-07-21T11:03:33Z</dc:date>
    <item>
      <title>Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203770#M37955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am utilizing the following code to convert numeric values to character values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array valsc (*) $ vsbpsysc vsbpdiac vspulsec vsrespc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array vals (*) vsbpsys vsbpdia vspulse vsresp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array norm (*) $ tempnorm bpnorm hrnorm respnorm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i =1 to dim(valsc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valsc{i}=strip(put(vals{i},8.));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if strip(norm{i}) = '' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valsc{i}=strip(norm{i});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the code and get no syntax errors, however the values of the array valsc come up as blank values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do each variable individually, ie &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vsbpsysc=put(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vsbpsys ,8.); I get the result I am looking for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This makes me wonder, is what I am attempting to do possible with arrays (since the elements of the two different arrays are of different types)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;EDIT: I found out what I was doing incorrectly. I had a type-o in my code, it should have read:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if strip(norm{i})&lt;STRONG&gt;^ =&lt;/STRONG&gt; '' then do;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valsc{i}=strip(norm{i});&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203770#M37955</guid>
      <dc:creator>sahotah</dc:creator>
      <dc:date>2015-07-15T15:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203771#M37956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have mixed up what has values and what doesn't there.&amp;nbsp; &lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vsbpsys=12; vsbpdia=13; vspulse=20; vsresp=5; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array valsc (*) $20. vsbpsysc vsbpdiac vspulsec vsrespc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array vals (*) 8. vsbpsys vsbpdia vspulse vsresp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i =1 to dim(valsc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valsc{i}=strip(put(vals{i},8.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have the numeric values to start with, and they get converted to character.&amp;nbsp; (also put the full format with length on it as well).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203771#M37956</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-15T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203772#M37957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The cats function is the best and easier way to do this conversion these days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valsc{i}=cat( vals{i} );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: navy; background: white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; t;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;array&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; a [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;] (-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;.00000000001234567890123456&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;1234567890123456&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; b1=put(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;],&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;32.26&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&amp;nbsp; b2=put(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;],&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;32.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b1= @&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;35&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b2= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; b1=put(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;],&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;best32.&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);b2=put(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;],&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;best32.&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b1= @&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;35&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b2= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; b1=cat(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b2=cat(a[&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b1= @&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;35&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; b2= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;run&lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;b1=-0.00000000001234567890123450&amp;nbsp; b2=-1234567890123456&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;b1=-1.2345678901234E-11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b2=-1234567890123456&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-NZ" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;b1=-1.2345678901234E-11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b2=-1234567890123456&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that decimal numbers always lose precision for some reason.&lt;/P&gt;&lt;P&gt;I have my sixteen digits for integers (since they are &amp;lt; 9,007,199,254,740,992)&lt;/P&gt;&lt;P&gt;but only 14 ( functions cat() and format best. )&amp;nbsp; or 15 (format w.d)&amp;nbsp; for decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Christian Graffeuille&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 10:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203772#M37957</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-16T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203773#M37958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it not the purpose of the put and input functions to convert data from numeric to character and vice versa using an Explicitly present format?&amp;nbsp; Personally I am quite against letting procedures guess what I want the data to look like.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 10:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203773#M37958</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-16T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203774#M37959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is but most users never get it right. And cat does just as good a job without having to provide the length or number of decimals: easier and less room for errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 11:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203774#M37959</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-16T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203775#M37960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no guessing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;If &lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue" style="font-style: italic; color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;item&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt; is numeric, then its value is converted to a character string by using the BEST&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue" style="font-style: italic; color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;w&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;. format. In this case, leading blanks are removed and SAS does not write a note to the log.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;If you want to convert to character using an associated format look to the VVALUE VVALUEX functions.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 12:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203775#M37960</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-07-16T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203776#M37961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never use format best. since it doesn't do as requested/expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; t;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*1;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32.30&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp; ); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'1- 32.30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*2;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp; ); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'2- best.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*3;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X= &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp; ); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'2- best.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*4;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'4- best20.&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*5;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X= &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'5- best20.&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*6;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best32.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'6- best32.&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*7;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0.00000000001234567890123456&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best32.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'7- best32.30 '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*8;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; X=-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1234567890123456000000000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;; Y=put(X,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32.30&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp; ); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'8- 32.30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; Y ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;Yields:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32.30&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;.000000000012345678901234560000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.23457E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.234568E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901235E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901234E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best32.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901234E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best32.30&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901234E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32.30&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1234567890123456163050684416.00&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Line 1: Format 32.30 displays all the wanted digits, as requested by the length of 32.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Line 2-3: Format best. drops many digits as its default length is 12. Let's accept this is a design decision.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Line 4-5: Format best20. does what's on the tin for negative numbers (but rounding is wrong), but does not use the full length for positive numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Line 6-7: Format best32. does not display the requested precision, It behaves as format best20.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Line 8 : Format 32.30 doesn't correctly writes large integers but is still the "best" format here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 23:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203776#M37961</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-16T23:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203777#M37962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sure I don't understand your point.&amp;nbsp; In one thread you say that CAT is the "best" way to convert numeric to character and in another you say "I never use BEST format".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for rounding with W.D format "everyone" knows that it doesn't always round as expected as shown in this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = -&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1e-12&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; y = round(x,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;**-&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;10.6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x= y=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;10.6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; y=;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=-&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0.000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x=-&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1E-12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; y=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0.000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; y=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 12:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203777#M37962</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-07-17T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203778#M37963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1- I am saying cat() is good enough, precise enough, fast and easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I need full control then w.d is the best. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format best. the worst, cat() matches or bests any best. format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data t;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*1; X=-0.00000000001234567890123456; Y=put(X,32.30&amp;nbsp; ); put '1- 32.30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*2; X=-0.00000000001234567890123456; Y=put(X,best.&amp;nbsp; ); put '2- best.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*3; X= 0.00000000001234567890123456; Y=put(X,best.&amp;nbsp; ); put '2- best.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*4; X=-0.00000000001234567890123456; Y=put(X,best20.); put '4- best20.&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*5; X= 0.00000000001234567890123456; Y=put(X,best20.); put '5- best20.&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*6; X=-0.00000000001234567890123456; Y=put(X,best32.); put '6- best32.&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*7; X=-0.00000000001234567890123456; Y=put(X,best32.); put '7- best32.30 ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*8; X=-1234567890123456000000000000; Y=put(X,32.30&amp;nbsp; ); put '8- 32.30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*9; X=-0.00000000001234567890123456; Y=cat(X); put '9- cat()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*10; X=-1234567890123456000000000000; Y=cat(X); put '10- cat()&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Y ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1- 32.30 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -.000000000012345678901234560000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2- best. &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1.23457E-11&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2- best. &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.234568E-11&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4- best20.&amp;nbsp;&amp;nbsp; -1.2345678901235E-11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;5- best20.&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2345678901234E-11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6- best32.&amp;nbsp;&amp;nbsp; -1.2345678901234E-11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7- best32.30 -1.2345678901234E-11&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;8- 32.30 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; -1234567890123456025611730944.00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;9- cat() &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; -1.2345678901234E-11&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;10- cat()&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; -1234567890123456025611730944&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- I don't understand what you are trying to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just showing that&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901235E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is wrong. The right value for this string length would be&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;best20.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1.2345678901234E-11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which is what the other formatted strings contain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway to each their own...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 06:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203778#M37963</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-19T06:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203779#M37964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) You need read the documentation; CAT uses BEST so there is no difference.&amp;nbsp; CAT does quietly convert to character with no annoying conversion note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I was saying that rounding cannot always left to w.d as it gets it wrong sometimes as shown by my example where w.d displays negative zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203779#M37964</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-07-20T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203780#M37965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CAT uses BEST32., not BEST.&lt;/P&gt;&lt;P&gt;Shorter BEST. formats (which everydody uses) can yield surprises as I've shown. &lt;/P&gt;&lt;P&gt;So *my opinion* is : why bother, cat is easier to use and to teach, so that's what I do now.&lt;/P&gt;&lt;P&gt;That's the only point I have been making, and I made this point as I think it has value for less experienced SAS users.&lt;/P&gt;&lt;P&gt;Feel free to disagree. I've said all I had to say on this matter.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 21:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203780#M37965</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-20T21:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203781#M37966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, disagree slightly here.&amp;nbsp; The use of cat would then be hiding and additional conversion part behind the scenes.&amp;nbsp; New users need to understand how data is stored and how to properly convert one type to the other, including lengths and associated truncation.&amp;nbsp; Its a bit like proc import/export, these functions work, and behind the scenes try to guess what you want to do.&amp;nbsp; Hence the constant stream of questions on here asking why x column is doing this, and why y file is not importing etc.&amp;nbsp; If they learnt how to import a file by hand typing everything in, setting formats/informats/lengths, and also how to design transfer specifications, then these questions would not arise as they would understand the principals.&amp;nbsp; Most specifications I have seen state lengths of numeric variables including how many decimal places, so as long as you follow spec then there shouldn't be any problems.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mind you, I suppose you could take that argument right back to why we are not programming in assembly, but hey, just trying to reduce the numbers of questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 08:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203781#M37966</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-21T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203782#M37967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the crowd. A good proportion of the people I work with are not programmers. They mostly use just SQL and they always forget how to convert types. That's probably the #1 question they keep asking. Or used to be.&lt;/P&gt;&lt;P&gt;I wrote a to_number() function à la oracle for them for the same reason.&lt;/P&gt;&lt;P&gt;But I use cat() too: why bother with put(NUM, best32. -l) when it doesn't do a better job than cats (NUM)?&lt;/P&gt;&lt;P&gt;Sadly, we're moving onto EG soon though, so I suppose they'll like it better (we'll see how EG converts types) while the more confirmed SAS users will have to endure EG's interface (I know I know, many people here like EG for some reason I cannot fathom). SAS Studio will ease the pain somewhat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203782#M37967</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-21T11:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203783#M37968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;people I work with are not programmers" - I wouldn't let them do programming then (SQL is programming).&amp;nbsp; You wouldn't want me doing surgery would you?&amp;nbsp; Yes, tools like EG and VA are plasters, hide the code underneath so anyone can use them.&amp;nbsp; Sounds great, but in the UK at least there is a problem with people no longer understanding coding, just point an click.&amp;nbsp; Another example is tv's.&amp;nbsp; My partners nephew the other day was trying to press the tv screen, had grown up with ipad's so just didn't understand how things worked outside touch screens.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203783#M37968</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-21T11:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203784#M37969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BEST is the name 32 is the (w)idth.&amp;nbsp; The documentation for CAT does not indicate what value SAS uses for W.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your "demonstration" implies that SAS may use w=32 at least some of the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 12:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203784#M37969</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-07-21T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing - Numeric to Character Conversion using a put statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203785#M37970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are analysts, so they need to manipulate data. SQL is one step up from excel, and allows them to go to oracle as well. Full SAS programmation is another step up which only some climb. I feel your pain about users not always understanding what's happening ebhind the scene. Same about some "statisticians" ' models. EG was a curse in this respect, a double edged sword: more SAS users on one hand, more naive users on the other. EG should never had replaced the DMS. A good IDE should have replaced it: 2 crowds, 2 interfaces. Sadly SAS pushed EG like there's no tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 22:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-Numeric-to-Character-Conversion-using-a-put/m-p/203785#M37970</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-21T22:45:35Z</dc:date>
    </item>
  </channel>
</rss>

