<?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: Macro values with new line characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-values-with-new-line-characters/m-p/88804#M18893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it corrected. Solution is as below : if at all anyone is interested. Use compress to remove extra lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;/P&gt;&lt;P&gt;SET NEW;&lt;/P&gt;&lt;P&gt;MACRO_PARAMETERS = COMPRESS(MACRO_PARAMETERS,'','KW');&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@MODS : Please close the thread as answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 04:59:06 GMT</pubDate>
    <dc:creator>forumsguy</dc:creator>
    <dc:date>2013-05-30T04:59:06Z</dc:date>
    <item>
      <title>Macro values with new line characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-values-with-new-line-characters/m-p/88803#M18892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, i am reading values from excel sheet. Which has 2-3 merged cells, so when I amusing proc import I get 2-3 new lines in my dataset. I want to get rid of that since I want to create macro variable in next step of this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe code that I am using to create new macro variable is as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let TYPE_CODE=%sysfunc(getvarc(&amp;amp;tab_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %sysfunc(varnum(&amp;amp;tab_name,TYPE_CODE))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, values of TYPE_CODE is original table are as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CODE=1, TYPE_CODE="HL" "PL"&amp;nbsp; "CC", TYPE_CODE=_ALL_&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there are 3 lines above CODE=1 and this itself is one single observation in my dataset. Any help is really appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 11:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-values-with-new-line-characters/m-p/88803#M18892</guid>
      <dc:creator>forumsguy</dc:creator>
      <dc:date>2013-05-29T11:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro values with new line characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-values-with-new-line-characters/m-p/88804#M18893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it corrected. Solution is as below : if at all anyone is interested. Use compress to remove extra lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;/P&gt;&lt;P&gt;SET NEW;&lt;/P&gt;&lt;P&gt;MACRO_PARAMETERS = COMPRESS(MACRO_PARAMETERS,'','KW');&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@MODS : Please close the thread as answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 04:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-values-with-new-line-characters/m-p/88804#M18893</guid>
      <dc:creator>forumsguy</dc:creator>
      <dc:date>2013-05-30T04:59:06Z</dc:date>
    </item>
  </channel>
</rss>

