<?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 Concatenated variable show zero in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649546#M194748</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am converting two numeric variables to character and then&amp;nbsp; I am concatenating them. After concatenating the the result variable shows&amp;nbsp; zero instead the vale expected. Could you please help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data med_23;&lt;BR /&gt;length llimit ulimit plci $100;&lt;BR /&gt;set plot21;&lt;BR /&gt;if ^missing(lowerlimit) then llimit=compress(strip(put(lowerlimit,6.2)));&lt;BR /&gt;else llimit="NE";&lt;BR /&gt;if ^missing(upperlimit) then ulimit=compress(strip(put(upperlimit,6.2)));&lt;BR /&gt;&amp;nbsp;else ulimit="NE";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;if ^missing(llimit) and ^missing(ulimit) then plci = strip(put(estimate,6.3))||" ("||llimit||", "|ulimit||")";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 12:26:21 GMT</pubDate>
    <dc:creator>mnithinshetty</dc:creator>
    <dc:date>2020-05-21T12:26:21Z</dc:date>
    <item>
      <title>Concatenated variable show zero</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649546#M194748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am converting two numeric variables to character and then&amp;nbsp; I am concatenating them. After concatenating the the result variable shows&amp;nbsp; zero instead the vale expected. Could you please help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data med_23;&lt;BR /&gt;length llimit ulimit plci $100;&lt;BR /&gt;set plot21;&lt;BR /&gt;if ^missing(lowerlimit) then llimit=compress(strip(put(lowerlimit,6.2)));&lt;BR /&gt;else llimit="NE";&lt;BR /&gt;if ^missing(upperlimit) then ulimit=compress(strip(put(upperlimit,6.2)));&lt;BR /&gt;&amp;nbsp;else ulimit="NE";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;if ^missing(llimit) and ^missing(ulimit) then plci = strip(put(estimate,6.3))||" ("||llimit||", "|ulimit||")";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649546#M194748</guid>
      <dc:creator>mnithinshetty</dc:creator>
      <dc:date>2020-05-21T12:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenated variable show zero</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649551#M194753</link>
      <description>&lt;P&gt;We need to see (a portion) of your data as &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;SAS data step code&lt;/A&gt;, pasted into your message after clicking on the "running man" icon. (If your data is in the attachment, many of us will not or can not download attachments as they are a security risk).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that LLIMIT and ULIMIT ought to be numeric variables rather than character variables, which would make your programming simpler and perhaps would eliminate the problem you are having.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649551#M194753</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-21T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenated variable show zero</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649553#M194755</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if ^missing(llimit) and ^missing(ulimit) then plci = strip(put(estimate,6.3))||" ("||llimit||", "|ulimit||")";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should be&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if ^missing(llimit) and ^missing(ulimit) then plci = strip(put(estimate,6.3))||" ("||llimit||", "&amp;nbsp; &amp;nbsp; &amp;nbsp;||&amp;nbsp; &amp;nbsp;ulimit||")";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I added a vertical bar. The added white space was just to make it easier for you to see. You should really look into the cat series of functions, ifc, ifn, etc. They make life easier. You should use one of the cat* functions instead of what you are doing, because you are not stripping values of your intermediate variables before concatenating.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenated-variable-show-zero/m-p/649553#M194755</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-05-21T12:46:58Z</dc:date>
    </item>
  </channel>
</rss>

