<?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: Facing error while concatenating the columns in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955210#M45661</link>
    <description>&lt;P&gt;The actual length of the CLM_ID column is longer than it is displayed. To resolve this, you can add strip function to remove the trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cats('0000'||strip(C.CLM_ID)||(put(c.CLM_VER_NBR,z2.))) as ABC_clm&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 13:22:08 GMT</pubDate>
    <dc:creator>UnknownCS</dc:creator>
    <dc:date>2025-01-06T13:22:08Z</dc:date>
    <item>
      <title>Facing error while concatenating the columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955209#M45660</link>
      <description>&lt;P&gt;Please help me here as I am using below code I am getting multiple spaces within the ABC_clm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql outobs=100;&lt;BR /&gt;create table test as&lt;BR /&gt;SELECT&lt;BR /&gt;C.CLM_ID,&lt;BR /&gt;C.CLM_VER_NBR,&lt;BR /&gt;cats('0000'||C.CLM_ID||(put(c.CLM_VER_NBR,z2.))) as ABC_clm&lt;BR /&gt;from NET.CLAIM C&lt;BR /&gt;where CLM_VER_NBR ne 0;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vishalrajpoot3_0-1736169219036.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103495iB67A98C630707E0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vishalrajpoot3_0-1736169219036.png" alt="vishalrajpoot3_0-1736169219036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955209#M45660</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2025-01-06T13:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Facing error while concatenating the columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955210#M45661</link>
      <description>&lt;P&gt;The actual length of the CLM_ID column is longer than it is displayed. To resolve this, you can add strip function to remove the trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cats('0000'||strip(C.CLM_ID)||(put(c.CLM_VER_NBR,z2.))) as ABC_clm&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955210#M45661</guid>
      <dc:creator>UnknownCS</dc:creator>
      <dc:date>2025-01-06T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Facing error while concatenating the columns</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955211#M45662</link>
      <description>&lt;P&gt;Your syntax inside the CATS() function is incorrect. You want to use commas (not || ) to separate the different text strings to be concatenated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cats('0000',C.CLM_ID,put(c.CLM_VER_NBR,z2.)) as ABC_clm
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 13:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Facing-error-while-concatenating-the-columns/m-p/955211#M45662</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-06T13:33:22Z</dc:date>
    </item>
  </channel>
</rss>

