<?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: Why won't the data values transfer when I create a numeric variable from a character variable using input()? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-won-t-the-data-values-transfer-when-I-create-a-numeric/m-p/124830#M10271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA work.master_file5_TESTING;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set work.master_file5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newownership = input(left(ownership),8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newownership1 = input(left(ownership1),8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newtype = input(left(type), 8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PG&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 22:25:19 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-09-18T22:25:19Z</dc:date>
    <item>
      <title>Why won't the data values transfer when I create a numeric variable from a character variable using input()?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-won-t-the-data-values-transfer-when-I-create-a-numeric/m-p/124829#M10270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i am currently trying to recode a data set so that some variables that are currently character, are numeric.&amp;nbsp; Now keep in mind, even though they are character variables, they still have the values 1,2,3, etc... (no letters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the formatting so that these are numeric variables and not character variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody see what I'm doing wrong?&amp;nbsp; I've been looking at it for a while now and can't figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODING:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=WORK.MASTER_FILE5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES type ownership ownership1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TITLE1 TYPE OWNERSHIP ownership1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*HERE I GET A PERFECTLY REASONABLE LIST OF DATA) BUT WHEN I MAKE MY NEW VARIABLES....*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA work.master_file5_TESTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set work.master_file5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newownership = input(ownership,8.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; newownership1 = input(ownership1,8.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; newtype = input(type, 8.);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=work.master_file5_TESTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES newownership newownership1 newtype;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*THIS PROC FREQ ANALYSIS REPORTS THAT ALL VALUES ARE MISSING*;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 21:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-won-t-the-data-values-transfer-when-I-create-a-numeric/m-p/124829#M10270</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2012-09-18T21:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't the data values transfer when I create a numeric variable from a character variable using input()?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-won-t-the-data-values-transfer-when-I-create-a-numeric/m-p/124830#M10271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA work.master_file5_TESTING;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set work.master_file5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newownership = input(left(ownership),8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newownership1 = input(left(ownership1),8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; newtype = input(left(type), 8.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PG&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 22:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-won-t-the-data-values-transfer-when-I-create-a-numeric/m-p/124830#M10271</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-09-18T22:25:19Z</dc:date>
    </item>
  </channel>
</rss>

