<?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 to convert format from character to numeric variable in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374292#M2946</link>
    <description>Thank you, it works.</description>
    <pubDate>Sun, 09 Jul 2017 17:12:59 GMT</pubDate>
    <dc:creator>ydu180</dc:creator>
    <dc:date>2017-07-09T17:12:59Z</dc:date>
    <item>
      <title>How to convert format from character to numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374279#M2940</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=hw4.demographic
          out=work.demographic;
   by ID;
run;

proc sort data=hw4.survey2
          out=work.survey2;
   by ID;
run;

data work.demo2_ydu18;
   merge work.demographic work.survey2;
   by ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ID in demographic is character and in survey2 is numeric. I want to merge those two data set, could anyone tell how to convert one of those type. I tried ID=input(ID, 3.0); in demographic but it did not work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 16:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374279#M2940</guid>
      <dc:creator>ydu180</dc:creator>
      <dc:date>2017-07-09T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert format from character to numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374283#M2942</link>
      <description>&lt;PRE&gt;data demographic;
  input id $;
  cards;
1
2
3
;

data demographic (drop=_id);
  set demographic (rename=(id=_id));
  id=input(_id,3.);
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 16:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374283#M2942</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-07-09T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert format from character to numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374292#M2946</link>
      <description>Thank you, it works.</description>
      <pubDate>Sun, 09 Jul 2017 17:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-format-from-character-to-numeric-variable/m-p/374292#M2946</guid>
      <dc:creator>ydu180</dc:creator>
      <dc:date>2017-07-09T17:12:59Z</dc:date>
    </item>
  </channel>
</rss>

