<?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: how to find out if several fields are empty ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152706#M30067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgot to say, all&amp;nbsp; the fields are defined as characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It always comes back with a length of 1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not understanding why is that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 21:45:35 GMT</pubDate>
    <dc:creator>shikoulitz</dc:creator>
    <dc:date>2014-10-31T21:45:35Z</dc:date>
    <item>
      <title>how to find out if several fields are empty ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152705#M30066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is there a way to concatenate several fields, and if they are empty have length = 0 or nulls?&lt;/P&gt;&lt;P&gt;I am trying to execute the following and always comes back with length of 1, even though fields are empty..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ALLVARS = LENGTH(COMPRESS(CATS(FIELD1,FIELD2,FIELD3,DATE1,DATE2),'00'X));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the compress is there because sometimes I have binary zeroes on the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to execute a process in case the fields have values and another one if they don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 21:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152705#M30066</guid>
      <dc:creator>shikoulitz</dc:creator>
      <dc:date>2014-10-31T21:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if several fields are empty ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152706#M30067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgot to say, all&amp;nbsp; the fields are defined as characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It always comes back with a length of 1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not understanding why is that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 21:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152706#M30067</guid>
      <dc:creator>shikoulitz</dc:creator>
      <dc:date>2014-10-31T21:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if several fields are empty ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152707#M30068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try LENGTHN().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is why:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0f6jve4kdxnh1n1m7c82fhosgih.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0f6jve4kdxnh1n1m7c82fhosgih.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 22:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152707#M30068</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-10-31T22:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if several fields are empty ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152708#M30069</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;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;CMISS(FIELD1,FIELD2,FIELD3,DATE1,DATE2) = 5;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;to check if all values are missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;PG&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 00:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152708#M30069</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-11-01T00:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if several fields are empty ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152709#M30070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PGStats,&lt;/P&gt;&lt;P&gt;I wasn't even aware this functions existed. :smileylaugh:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 05:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-out-if-several-fields-are-empty/m-p/152709#M30070</guid>
      <dc:creator>shikoulitz</dc:creator>
      <dc:date>2014-11-03T05:08:43Z</dc:date>
    </item>
  </channel>
</rss>

