<?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 missing() on CHAR column: Variable col1 in list does not match type prescribed for this list. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660016#M197608</link>
    <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since days I am fighting with the following problem, and growing desperate...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply, I do just intend to check a CHAR column col1 for whether its value is missing - trivial for numeric values, but - at least for me - the promise it's the same for characters doesn't seem to come true.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After anonymizing the namings, my code is about (which for numeric columns works perfectly well):&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;data&amp;nbsp; Out_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Input_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; missing_z=missing( col1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;keep missing_z&amp;nbsp; col1 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data= Out_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by&amp;nbsp; missing_z;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var col1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=Out_Tab2&amp;nbsp;&amp;nbsp; sum=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once trying to do the same on a character column, however (having tried out uncounted imaginable variations), I regularly receive an error message like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ERROR: Variable col1 in list does not match type prescribed for this list.&lt;/P&gt;&lt;P&gt;WARNING: The data set Out_Tab2 may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and&lt;/P&gt;&lt;P&gt;WARNING: Data set Out_Tab2 was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;ERROR: SAS ended due to errors.&lt;/P&gt;&lt;P&gt;ERROR: Errors printed on pages 9,10.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What needs to be done, that I do not see?? And, where to find documentation on this that is neither terse nor cryptic??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance - I really need your help, Teona&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 12:00:56 GMT</pubDate>
    <dc:creator>TBS1</dc:creator>
    <dc:date>2020-06-16T12:00:56Z</dc:date>
    <item>
      <title>missing() on CHAR column: Variable col1 in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660016#M197608</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since days I am fighting with the following problem, and growing desperate...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply, I do just intend to check a CHAR column col1 for whether its value is missing - trivial for numeric values, but - at least for me - the promise it's the same for characters doesn't seem to come true.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After anonymizing the namings, my code is about (which for numeric columns works perfectly well):&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;data&amp;nbsp; Out_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Input_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; missing_z=missing( col1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;keep missing_z&amp;nbsp; col1 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data= Out_Tab1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by&amp;nbsp; missing_z;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var col1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=Out_Tab2&amp;nbsp;&amp;nbsp; sum=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once trying to do the same on a character column, however (having tried out uncounted imaginable variations), I regularly receive an error message like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ERROR: Variable col1 in list does not match type prescribed for this list.&lt;/P&gt;&lt;P&gt;WARNING: The data set Out_Tab2 may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and&lt;/P&gt;&lt;P&gt;WARNING: Data set Out_Tab2 was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;ERROR: SAS ended due to errors.&lt;/P&gt;&lt;P&gt;ERROR: Errors printed on pages 9,10.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;= 8&amp;lt; ======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What needs to be done, that I do not see?? And, where to find documentation on this that is neither terse nor cryptic??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance - I really need your help, Teona&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 12:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660016#M197608</guid>
      <dc:creator>TBS1</dc:creator>
      <dc:date>2020-06-16T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: missing() on CHAR column: Variable col1 in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660017#M197609</link>
      <description>If your intention is to get missing value summary in your output then you can use missing option on proc summary. Your col1 is still character variable you cannot use it on the var statement. Your code should be modified as &lt;BR /&gt;By col1;&lt;BR /&gt;Var missing_colz;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jun 2020 12:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660017#M197609</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-16T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: missing() on CHAR column: Variable col1 in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660018#M197610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The Var requires numeric analysis variables. in your case, you are saying COL1 is a Character variable!&lt;/P&gt;
&lt;P&gt;&lt;A title="VAR Statement " href="https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p12n9rrav4byvzn1b9wj26dcoq9l.htm" target="_self"&gt;VAR Statement &lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 12:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660018#M197610</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2020-06-16T12:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: missing() on CHAR column: Variable col1 in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660109#M197628</link>
      <description>&lt;P&gt;many thanks for your support.&lt;/P&gt;&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Teona&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660109#M197628</guid>
      <dc:creator>TBS1</dc:creator>
      <dc:date>2020-06-16T16:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: missing() on CHAR column: Variable col1 in list does not match type prescribed for this list.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660110#M197629</link>
      <description>&lt;P&gt;thank you very much for your advice. I really miss understanding.&lt;/P&gt;&lt;P&gt;Thanks for the link!&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Teona&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-on-CHAR-column-Variable-col1-in-list-does-not-match-type/m-p/660110#M197629</guid>
      <dc:creator>TBS1</dc:creator>
      <dc:date>2020-06-16T16:57:02Z</dc:date>
    </item>
  </channel>
</rss>

