<?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 convert alpha to numeric without creating a new var in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31797#M7584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Import works fine, it's just the data I receive in the Excel format has half of it in numeric form and the other in alpha form, but they're all numbers.&amp;nbsp; I can make the changes in Excel before hand, but wanted a way for SAS to handle it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 13:40:16 GMT</pubDate>
    <dc:creator>podarum</dc:creator>
    <dc:date>2012-01-18T13:40:16Z</dc:date>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31790#M7577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not working for me.. but I have data that is both alpha and numeric.&amp;nbsp; I'm trying to make it all numeric. (it's alot of data and it has been imported with many variables mixed in numeric and alpha).. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;A name="a000289545"&gt;&lt;/A&gt;data HAVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input VAR1 $ VAR2 ..VAR12 $ .... VAR23 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 34 ....&amp;nbsp; 46&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 45 ....&amp;nbsp; 57&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WANT all of them to be numeric. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 20:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31790#M7577</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-17T20:02:13Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31791#M7578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The real solution is to fix the IMPORT step to not do that.&amp;nbsp; What is the source format that is being input? How consistent are the files? Could you instead use a program instead of trying to use an import tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert the type you will need to create new variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One possible quick way to convert would be to dump the current data to a CSV file and then reread it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dump temp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file dump dsd dlm=',' lrecl=32000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length var1-var5 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile dump dsd dlm=',' lrecl=32000 truncover ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var1-var5 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 20:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31791#M7578</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-17T20:51:15Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31792#M7579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'm getting a large file in Excel with dates as the variables (about 50 dates), and importing it everry month.&amp;nbsp; I can convert them in Excel, but wanted it to automate it in SAS instead. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 20:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31792#M7579</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-17T20:57:37Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31793#M7580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following is a way to convert your example data, and it could easily be adjusted to account for dates, but it was based on your variables being named like in your example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var1 $ var2 var3 $ var4 var5 $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 2 3 4 5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select name,name||"=_"||name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when "char" then name||"=input(_"||name||",12.);"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else name||"=_"||name||";"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :junk separated by " ",&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; :renames separated by " ",&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; :resets separated by " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="WORK" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="HAVE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by name&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have (drop=_:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (rename=(&amp;amp;renames.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; array var(&amp;amp;sqlobs.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;resets;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31793#M7580</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-17T21:12:41Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31794#M7581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ideally do it in your import step rather than a processing data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its dates you're also better off show some sample data that's dates and how the import isn't working properly, ie where does it import as text. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31794#M7581</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-17T21:45:22Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31795#M7582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Do you have access to pc files?&amp;nbsp; If so, there are switches on excel libname statement to do what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31795#M7582</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-17T22:14:17Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31796#M7583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Larry can you elaborate on that?, it sounds like a solution. But don't know what you mean.&amp;nbsp;&amp;nbsp; I have access to the files that are located on mu PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 03:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31796#M7583</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T03:21:23Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31797#M7584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Import works fine, it's just the data I receive in the Excel format has half of it in numeric form and the other in alpha form, but they're all numbers.&amp;nbsp; I can make the changes in Excel before hand, but wanted a way for SAS to handle it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31797#M7584</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T13:40:16Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31798#M7585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I should have been more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the SAS/Access to Interface PC Files installed on your pc?&amp;nbsp;&amp;nbsp; If you are not sure, then run "proc setinit; run;' and see if that is listed in the log as a product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31798#M7585</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-18T14:11:25Z</dc:date>
    </item>
    <item>
      <title>convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31799#M7586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, I have it.&lt;/P&gt;&lt;P&gt;SAS/ACCESS&amp;nbsp; Interface to PC Files &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31799#M7586</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31800#M7587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, assuming you have your data in an actual Excel file and not CSV file, then try using excel libname.&amp;nbsp; I expect the date issue to be handled transparently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname my_excel excel "&lt;EM&gt;my_excel_file_name_with_full_path.xls&lt;X&gt;' &lt;/X&gt;&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* use to get list of sheet and range names. Sheet names will end in '$' character.&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc contents data = my_excel._all_ ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assuming your data is on sheet1.&amp;nbsp; Using name string to specify data set name with non-alphabetic characters (includes space) ;&lt;/P&gt;&lt;P&gt;data my_data ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set my_excel.'sheet1$'n ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31800#M7587</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-18T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31801#M7588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this , and still got alpha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character.&lt;/P&gt;&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character.&lt;/P&gt;&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character.&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by:&lt;/P&gt;&lt;P&gt;(Line):(Column).&lt;/P&gt;&lt;P&gt;528:133&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/P&gt;&lt;P&gt;(Line):(Column).&lt;/P&gt;&lt;P&gt;528:147&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.CONDO_TEST2 may be incomplete. When this step was stopped there&lt;/P&gt;&lt;P&gt;were 0 observations and 122 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.CONDO_TEST2 was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 17:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31801#M7588</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31802#M7589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Please examine proc contents for the input table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What columns are alpha where you expect to be numeric?&amp;nbsp; Examine those columns to see if you have some kind of data error.&amp;nbsp; For example, a single value of 'unknown date' in the excel spreadsheet would cause that column to be read as character and not datetime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 17:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31802#M7589</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-18T17:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31803#M7590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there might be some misunderstanding about your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have an excel file with about 50 variables that are in a date format. About half import as numbers and half import as character? Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd also guess that the dates that aren't importing are in some format such as day/month/year.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm guessing so you'd need to provide more information on how your file is structured to be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For these types of problems, there's generally 3 solutions I've seen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Import everything as character and process afterwards in SAS&lt;/P&gt;&lt;P&gt;2. Connect to Excel file using an ODBC connection and explicitly state the data types for each field. &lt;/P&gt;&lt;P&gt;3. Some combination of above, if you know only certain fields will give you problems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at any rate the solution becomes highly customized to the particular dataset/issue so without more details its hard to help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 17:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31803#M7590</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-18T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31804#M7591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct on all your questions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="View Columns.png" class="jive-image-thumbnail jive-image" height="359" onclick="" src="https://communities.sas.com/legacyfs/online/1402_View Columns.png" width="517" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31804#M7591</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T18:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31805#M7592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you attach a file with the first ten lines or so of your spreadsheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31805#M7592</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-18T18:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31806#M7593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd still recommend the approach I originally suggested, just modified to account for your actual variable names.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input (ShapeKey GeoType _00110-_00112) ($)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _00304-_00308;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1 1 2 3 4 5 6 7 8&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select name,name||"=old"||name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when "char" then name||"=input(old"||name||",12.);"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else name||"=old"||name||";"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :junk separated by " ",&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; :renames separated by " ",&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; :resets separated by " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="WORK" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="HAVE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by name&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=old:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (rename=(&amp;amp;renames.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;resets;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31806#M7593</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-18T18:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31807#M7594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure...How do you attach files (Excel) in this forum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31807#M7594</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T18:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31808#M7595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does work &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;P&gt;&lt;/P&gt;&lt;P&gt;Add in a format for your dates if you'd like as well, just to make sure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=old:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (rename=(&amp;amp;renames.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;resets;&lt;/P&gt;&lt;P&gt;format _0: date9.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31808#M7595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-18T18:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: convert alpha to numeric without creating a new var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31809#M7596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I agree Art, the problem is that I have about 15 files that I have to do this to. And I was hoping to find a less coding way around it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/convert-alpha-to-numeric-without-creating-a-new-var/m-p/31809#M7596</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-01-18T18:32:41Z</dc:date>
    </item>
  </channel>
</rss>

