<?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 x in list does not match type prescribed for this list. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434024#M22864</link>
    <description>&lt;P&gt;One solution is to replace cells in Excel containing "."&amp;nbsp;with blank cells (containing nothing). SAS will assign missing values to those fields.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 00:19:19 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2018-02-05T00:19:19Z</dc:date>
    <item>
      <title>ERROR: Variable x in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434018#M22858</link>
      <description>&lt;P&gt;Hi I am I new user to SAS and am trying to input some variables to preform an anlysis but one of my variables has some missing values (no data entries) that are entered as "." in my excel file but when I try to run this statement I get the error that the variable with the missing values (ecec) does not match type presribed for this list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc corr data= sernec;&lt;BR /&gt;var ph sand silt clay ksat ecec om;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1114&amp;nbsp; proc corr data= sernec;&lt;BR /&gt;1115&amp;nbsp; var ph sand silt clay ksat ecec om;&lt;BR /&gt;ERROR: Variable ecec in list does not match type prescribed for this list.&lt;BR /&gt;1116&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help! I have the data all as numeric. thank-you!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 22:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434018#M22858</guid>
      <dc:creator>emma93</dc:creator>
      <dc:date>2018-02-04T22:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable x in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434024#M22864</link>
      <description>&lt;P&gt;One solution is to replace cells in Excel containing "."&amp;nbsp;with blank cells (containing nothing). SAS will assign missing values to those fields.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 00:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434024#M22864</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-02-05T00:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable x in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434026#M22866</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/191383"&gt;@emma93&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi I am I new user to SAS and am trying to input some variables to preform an anlysis but one of my variables has some missing values (no data entries) that are entered as "." in my excel file but when I try to run this statement I get the error that the variable with the missing values (ecec) does not match type presribed for this list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc corr data= sernec;&lt;BR /&gt;var ph sand silt clay ksat ecec om;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1114&amp;nbsp; proc corr data= sernec;&lt;BR /&gt;1115&amp;nbsp; var ph sand silt clay ksat ecec om;&lt;BR /&gt;ERROR: Variable ecec in list does not match type prescribed for this list.&lt;BR /&gt;1116&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help! I have the data all as numeric. thank-you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It doesn't matter what it is in Excel, it matters what SAS reads and stores it in. You can see the type using PROC CONTENTS. Run that on the data set and you'll see the type is likely character.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to convert it to numeric, either by modifying the Excel file so that SAS reads it in as numeric or converting it after importing it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=sernec; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To convert it via code you can use a data step and then try your PROC CORR again:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sernec2;
set sernec;

ecec_num = input(ecec, ?? 8.);

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 00:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434026#M22866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-05T00:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable x in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434262#M22886</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;ecec_num &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;ecec&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; ?? &lt;SPAN class="token number"&gt;8&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi does the above input specifiy that if there is a decimal "." to read it as no data ? I have all columns formatted in excel as numeric&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434262#M22886</guid>
      <dc:creator>emma93</dc:creator>
      <dc:date>2018-02-05T17:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable x in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434267#M22887</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/191383"&gt;@emma93&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;ecec_num &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;ecec&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; ?? &lt;SPAN class="token number"&gt;8&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi does the above input specifiy that if there is a decimal "." to read it as no data ? I have all columns formatted in excel as numeric&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A&amp;nbsp;nice and very difficult thing with Excel, it doesn't force types on data/columns. INPUT is for after the import and the ?? suppresses any warning&amp;nbsp; messages so its not always the best idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Variable-x-in-list-does-not-match-type-prescribed-for-this/m-p/434267#M22887</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-05T17:21:24Z</dc:date>
    </item>
  </channel>
</rss>

