<?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 Remove null value from CLOB data with spl char. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104565#M21822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to find records with only special characters (except comma, hyphen, fullstop) in a variable (splchar) with CLOB datatype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the main problem I faced is that the program captures null records along with my requirement. When I use the program (&lt;STRONG&gt;where schar is not null)&lt;/STRONG&gt; to exclude null value, its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use any other function like byte (). Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table abc&lt;/P&gt;&lt;P&gt;as select compbl(splchar) from table1; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;schar = compress(compress(splchar,"'-,.", 'n')); run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;set abc; &lt;/P&gt;&lt;P&gt;where schar is not null; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Feb 2013 07:16:59 GMT</pubDate>
    <dc:creator>Abraham</dc:creator>
    <dc:date>2013-02-10T07:16:59Z</dc:date>
    <item>
      <title>Remove null value from CLOB data with spl char.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104565#M21822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to find records with only special characters (except comma, hyphen, fullstop) in a variable (splchar) with CLOB datatype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the main problem I faced is that the program captures null records along with my requirement. When I use the program (&lt;STRONG&gt;where schar is not null)&lt;/STRONG&gt; to exclude null value, its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use any other function like byte (). Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table abc&lt;/P&gt;&lt;P&gt;as select compbl(splchar) from table1; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;schar = compress(compress(splchar,"'-,.", 'n')); run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;set abc; &lt;/P&gt;&lt;P&gt;where schar is not null; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 07:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104565#M21822</guid>
      <dc:creator>Abraham</dc:creator>
      <dc:date>2013-02-10T07:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove null value from CLOB data with spl char.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104566#M21823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your second step does not have a SET statement consequently the data set WORK.ABC will be replaced with a single observation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also find that the functions ANYPUNCT, NOTPUNCT, FIND, and FINDC can be helpful in these types of searches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 21:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104566#M21823</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2013-02-10T21:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove null value from CLOB data with spl char.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104567#M21824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS doesn't have a data type "CLOB". So in the moment the CLOB is "moved" to SAS it's a character variable with a max. length of 32KB. If your CLOB potentially contains more than 32K then you need to split it up into several SAS variables (it's the same with PL/SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No more sure how this "splitting up" is done but I know that it's documented for SAS so this is just about Googling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once in SAS your question is: How to find special characters in a SAS character variable. Art mentioned some methods. Other ways are: use compress() with the switch for special characters but exclude the ones you accept - and then use a length function on the resulting string and if it's '0' you've got only special characters. Another way would be to use a Regular Expression together with one of SAS' PRX...() functions (several options here).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-null-value-from-CLOB-data-with-spl-char/m-p/104567#M21824</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-02-11T10:14:17Z</dc:date>
    </item>
  </channel>
</rss>

