<?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 Change Variable Type in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415003#M101741</link>
    <description>&lt;P&gt;Disclaimer: I'm brand new to SAS.&amp;nbsp; But I've created a new data set named "employee_info" and I cannot figure out how to change the variable type of the salary column to currency.&amp;nbsp; This is the code I get, which does not specify the individual variables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code for Employee_info.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16755i56661CE63B3733D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Code for Employee_info.PNG" alt="Code for Employee_info.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 02:20:12 GMT</pubDate>
    <dc:creator>cbuon</dc:creator>
    <dc:date>2017-11-21T02:20:12Z</dc:date>
    <item>
      <title>Change Variable Type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415003#M101741</link>
      <description>&lt;P&gt;Disclaimer: I'm brand new to SAS.&amp;nbsp; But I've created a new data set named "employee_info" and I cannot figure out how to change the variable type of the salary column to currency.&amp;nbsp; This is the code I get, which does not specify the individual variables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code for Employee_info.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16755i56661CE63B3733D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Code for Employee_info.PNG" alt="Code for Employee_info.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415003#M101741</guid>
      <dc:creator>cbuon</dc:creator>
      <dc:date>2017-11-21T02:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Variable Type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415007#M101744</link>
      <description>&lt;P&gt;PROC IMPORT doesn’t allow you to change types, but I don’t thing that’s your issue anyways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS only has two types, numeric and character. Which of those is your variable? There is a currency format that can be applied, which may be what you’re looking to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/178638"&gt;@cbuon&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Disclaimer: I'm brand new to SAS.&amp;nbsp; But I've created a new data set named "employee_info" and I cannot figure out how to change the variable type of the salary column to currency.&amp;nbsp; This is the code I get, which does not specify the individual variables:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code for Employee_info.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16755i56661CE63B3733D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Code for Employee_info.PNG" alt="Code for Employee_info.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415007#M101744</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-21T02:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change Variable Type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415012#M101748</link>
      <description>&lt;P&gt;Thank you for responding! The format type is numeric, how do I apply the currency format?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415012#M101748</guid>
      <dc:creator>cbuon</dc:creator>
      <dc:date>2017-11-21T03:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change Variable Type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415016#M101749</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
x= 100000;
format x dollar12.;
run;

proc print data=sample;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use a FORMAT statement as above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415016#M101749</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-21T03:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change Variable Type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415050#M101756</link>
      <description>&lt;P&gt;When posting code and/or logs, follow the advice here: &lt;A href="https://communities.sas.com/t5/help/faqpage/faq-category-id/posting?nobounce" target="_blank"&gt;https://communities.sas.com/t5/help/faqpage/faq-category-id/posting?nobounce&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Typing text from pictures is tedious and unnecessary work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;: assigning a format does not &lt;EM&gt;change&lt;/EM&gt; the type or the contents of a variable (the type can't be changed at all), but it changes the way the contents are &lt;EM&gt;displayed&lt;/EM&gt;. You still need to use the raw value in comparisons, for example.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-Type/m-p/415050#M101756</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-21T07:32:49Z</dc:date>
    </item>
  </channel>
</rss>

