<?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: ERROR: Variable ACR has been defined as both character and numeric. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489768#M127953</link>
    <description>&lt;P&gt;You will have this crop up moderately frequently if you are relying on Proc Import to read data sets into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another frequent issue with Proc Import for multiple sets is the warning similar to:&lt;/P&gt;
&lt;PRE&gt;WARNING: Multiple lengths were specified for the variable x by input data set(s). &lt;BR /&gt;This can cause  truncation of data.
&lt;/PRE&gt;
&lt;P&gt;because each run of Proc Import guesses separately as to the appropriate length of variables and variable types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2018 20:27:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-24T20:27:42Z</dc:date>
    <item>
      <title>ERROR: Variable ACR has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489377#M127772</link>
      <description>&lt;P&gt;I am not sure why I continue to get this error, as I have checked each dataset from Histo1 to Histo18 and ACR is numeric in all the datasets. Any help is much appreciated, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1461&amp;nbsp; Data Histo;&lt;BR /&gt;1462&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length CR ID $12;&lt;BR /&gt;1463&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set HISTO1-HISTO18;&lt;BR /&gt;ERROR: Variable ACR has been defined as both character and numeric.&lt;BR /&gt;1464&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CR = strip(CAT("CR",strip(put(ACR,best.))));&lt;BR /&gt;1465&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop ACR;&lt;BR /&gt;1466&amp;nbsp; Run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.HISTO may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 6 variables.&lt;BR /&gt;WARNING: Data set WORK.HISTO was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489377#M127772</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-08-23T19:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable ACR has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489382#M127774</link>
      <description>&lt;P&gt;You can't just inspect the values to determine whether a variable is character or numeric.&amp;nbsp; You need to run a PROC CONTENTS on each data set, and inspect the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS will be correct.&amp;nbsp; You will have a mix where sometimes the variable is character and sometimes it is numeric.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489382#M127774</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-23T19:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable ACR has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489387#M127777</link>
      <description>&lt;P&gt;Alternatively you can also query &lt;STRONG&gt;dictionary.columns&lt;/STRONG&gt; and find if all of them are numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select distinct name,type
from dictionary.columns
where libname="WORK" and memname like 'HISTO%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489387#M127777</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-08-23T20:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable ACR has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489400#M127781</link>
      <description>&lt;P&gt;Thank you, that helped a lot. I was able to find the one dataset that had it as a character. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489400#M127781</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-08-23T20:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable ACR has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489768#M127953</link>
      <description>&lt;P&gt;You will have this crop up moderately frequently if you are relying on Proc Import to read data sets into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another frequent issue with Proc Import for multiple sets is the warning similar to:&lt;/P&gt;
&lt;PRE&gt;WARNING: Multiple lengths were specified for the variable x by input data set(s). &lt;BR /&gt;This can cause  truncation of data.
&lt;/PRE&gt;
&lt;P&gt;because each run of Proc Import guesses separately as to the appropriate length of variables and variable types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 20:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Variable-ACR-has-been-defined-as-both-character-and/m-p/489768#M127953</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-24T20:27:42Z</dc:date>
    </item>
  </channel>
</rss>

