<?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: How do I Convert Number to Character in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/397709#M8157</link>
    <description>&lt;P&gt;Try using Format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VA_format.png" style="width: 342px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15322i43C793BFC713BE14/image-size/large?v=v2&amp;amp;px=999" role="button" title="VA_format.png" alt="VA_format.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 08:22:04 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2017-09-21T08:22:04Z</dc:date>
    <item>
      <title>How do I Convert Number to Character</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/397603#M8153</link>
      <description>&lt;P&gt;I've seen this posted, but I've never seen a real answer - how do I convert a number to a character in SASVA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table where the data is loaded with a field as numeric but should really be character. This is a production table and the datatype cannot be changed at the source. It's also a very large table, so I don't want to have to create a staging table in order to do this (this is the only field that I need to change, I don't want to have to update a new table every time this report is ran).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot seem to make a calculated expression work that converts the number to a character. I've tried TreatAs() which didn't work (only treats a numeric as a different numeric type or datetype) and format() isn't recognizing any of the formats I give it (I don't think format converts types though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing? Thnks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/397603#M8153</guid>
      <dc:creator>Djones4822</dc:creator>
      <dc:date>2017-09-20T20:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Convert Number to Character</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/397709#M8157</link>
      <description>&lt;P&gt;Try using Format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VA_format.png" style="width: 342px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15322i43C793BFC713BE14/image-size/large?v=v2&amp;amp;px=999" role="button" title="VA_format.png" alt="VA_format.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/397709#M8157</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-21T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Convert Number to Character</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/414800#M8711</link>
      <description>&lt;P&gt;1. I had a data of 800gb, but the user has loaded it on lasr, and the column trdng_wk_end was having the values in number 20170112.&lt;/P&gt;&lt;P&gt;2. To create a date out of 20170112 kind of numbers follow the following.&lt;/P&gt;&lt;P&gt;2. create a new calculated item.&amp;nbsp; I used the combination of functions.&lt;/P&gt;&lt;P&gt;mdy - outer shell&lt;/P&gt;&lt;P&gt;parse - first inner shell&lt;/P&gt;&lt;P&gt;substr - second inner shell&lt;/P&gt;&lt;P&gt;format -&amp;nbsp;inner most inner shell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My case:&lt;/P&gt;&lt;P&gt;DateFromMDY(Parse(Substring(Format('TRDNG_WK_END_DT'n, 'BEST2.'), 5, 2), 'COMMA2.'), Parse(Substring(Format('TRDNG_WK_END_DT'n, 'BEST2.'), 7, 2), 'COMMA2.'),&lt;/P&gt;&lt;P&gt;Parse(Substring(Format('TRDNG_WK_END_DT'n, 'BEST4.'), 1, 4), 'COMMA4.'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Madhusudhan&lt;/P&gt;&lt;P&gt;SAS Administrator&amp;nbsp;&lt;/P&gt;&lt;P&gt;Landmark Group&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-Convert-Number-to-Character/m-p/414800#M8711</guid>
      <dc:creator>VivekRathod</dc:creator>
      <dc:date>2017-11-20T11:05:34Z</dc:date>
    </item>
  </channel>
</rss>

