<?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: IS THERE ANY FUNCTION TO REPLACE null  TO empty string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120867#M259705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will present this and other things at NESUG this year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following macro converts all nulls to zeros (that is what I needed) for eitehr a set of variables or for all numeric ones&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can easilly modify it to convert string 'null' to '' (blank) without typing multiple lines of code, even if here was a function this is better as you do not need to write 100 of lines to process 100's of variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a small&amp;nbsp; text file, for some reason I could nto paste code from my sas editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 15:03:47 GMT</pubDate>
    <dc:creator>mariosegal</dc:creator>
    <dc:date>2013-06-27T15:03:47Z</dc:date>
    <item>
      <title>IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120861#M259699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used coalescec function&lt;/P&gt;&lt;P&gt;(coalescec(Name,' ' )) for this.But it is not working.KIndly help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120861#M259699</guid>
      <dc:creator>Helannivas</dc:creator>
      <dc:date>2013-06-27T09:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120862#M259700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;if name = 'Null' then name=' ';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120862#M259700</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-27T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120863#M259701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Expression column I have given this.&lt;/P&gt;&lt;P&gt;I cannot validate this expression.Its throwing error.&lt;/P&gt;&lt;P&gt;I am using SAS DI studio 4.21.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120863#M259701</guid>
      <dc:creator>Helannivas</dc:creator>
      <dc:date>2013-06-27T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120864#M259702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ifc(name='null',' ',name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120864#M259702</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-27T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120865#M259703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS character variables are stored as fixed length and are padded on the right with spaces.&amp;nbsp; I am not sure there is any difference between the terms "null" and "empty string".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120865#M259703</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-06-27T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120866#M259704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tranwrd (name, "null" , " " )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120866#M259704</guid>
      <dc:creator>dyan</dc:creator>
      <dc:date>2013-06-27T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE ANY FUNCTION TO REPLACE null  TO empty string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120867#M259705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will present this and other things at NESUG this year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following macro converts all nulls to zeros (that is what I needed) for eitehr a set of variables or for all numeric ones&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can easilly modify it to convert string 'null' to '' (blank) without typing multiple lines of code, even if here was a function this is better as you do not need to write 100 of lines to process 100's of variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a small&amp;nbsp; text file, for some reason I could nto paste code from my sas editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 15:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IS-THERE-ANY-FUNCTION-TO-REPLACE-null-TO-empty-string/m-p/120867#M259705</guid>
      <dc:creator>mariosegal</dc:creator>
      <dc:date>2013-06-27T15:03:47Z</dc:date>
    </item>
  </channel>
</rss>

