<?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: concatenating two variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615132#M179905</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301371"&gt;@souji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to adding a LENGTH statement, you also need to manage the leading and trailing blanks of each variable to concatenate. You can use the STRIP() function to do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data staff;
	length JobCategory $3.;
	JobCategory='FA';
	JobLevel='1';
	JobCategory=strip(JobCategory)||strip(JobLevel);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jan 2020 13:09:57 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-01-04T13:09:57Z</dc:date>
    <item>
      <title>concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615111#M179893</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; staff;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;JobCategory=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;JobLevel=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;JobCategory=JobCategory&lt;STRONG&gt;||&lt;/STRONG&gt;JobLevel;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: What is the value of the variable JOBCATEGORY in the output data set?&lt;/P&gt;&lt;P&gt;Ans: FA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is , why not FA1. it did not use the below condition like&lt;/P&gt;&lt;P&gt;JobCategory=JobCategory||JobLevel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me to understand this&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 03:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615111#M179893</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T03:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615112#M179894</link>
      <description>&lt;P&gt;The variable JobCategory has a length of only two characters when defined by this statement:&lt;/P&gt;
&lt;PRE&gt;JobCategory='FA';&lt;/PRE&gt;
&lt;P&gt;So it doesn't matter what you try to concatenate on the end because it will always be truncated back to two characters dropping anything beyond that.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 03:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615112#M179894</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-04T03:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615114#M179895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301371"&gt;@souji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's because the intial assignment of&amp;nbsp;&lt;FONT face="Courier New" size="3"&gt;JobCategory=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'FA' assigns a length of 2 bytes and so the concatenated value is truncated to 2 bytes in the output.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To verify,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=staff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;# Variable Type Len&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1 JobCategory Char 2&lt;/STRONG&gt;&lt;BR /&gt;2 JobLevel Char 1&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 03:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615114#M179895</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-04T03:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615115#M179896</link>
      <description>&lt;P&gt;That's because the length is set too 2.&amp;nbsp; Use a length statement first to assign the variable more space&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aroop.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35136iCC91F319923E0173/image-size/large?v=v2&amp;amp;px=999" role="button" title="aroop.png" alt="aroop.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 03:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615115#M179896</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-01-04T03:30:54Z</dc:date>
    </item>
    <item>
      <title>concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615117#M179897</link>
      <description>&lt;P&gt;it work like this if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; staff;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; JobCategory $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;JobCategory=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;JobLevel=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Job=&lt;/STRONG&gt;JobCategory||JobLevel;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* if I add new variable like Job, then I am getting Job variable value FA1 */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;if I give &lt;STRONG&gt;JobCategory=&lt;/STRONG&gt;JobCategory||JobLevel; with&amp;nbsp; length statement , it is not given the &lt;STRONG&gt;JobCategory&amp;nbsp;&lt;/STRONG&gt;value &amp;nbsp;FA1, it is only FA&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 04:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615117#M179897</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T04:00:45Z</dc:date>
    </item>
    <item>
      <title>sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615120#M179898</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Passengers;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; OrigPassengers=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OrigPassengers=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;TransPassengers=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OrigPassengers=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;NonPaying=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalPassengers=OrigPassengers+TransPassengers;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please make me understand this, why the TotalPassengers is missing numeric value in the output&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 04:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615120#M179898</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T04:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615132#M179905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301371"&gt;@souji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to adding a LENGTH statement, you also need to manage the leading and trailing blanks of each variable to concatenate. You can use the STRIP() function to do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data staff;
	length JobCategory $3.;
	JobCategory='FA';
	JobLevel='1';
	JobCategory=strip(JobCategory)||strip(JobLevel);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 13:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615132#M179905</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-04T13:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615133#M179906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301371"&gt;@souji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In you data step, OrigPassengers is a numeric variable (by default, its length is 8).&lt;/P&gt;
&lt;P&gt;It is first set to a missing value (.), then to 100 and then to a missing value.&lt;/P&gt;
&lt;P&gt;So a the end, when you compute TotalPassengers =&amp;nbsp;OrigPassengers+TransPassengers, you compute&amp;nbsp; TotalPassengers = . + 100&lt;/P&gt;
&lt;P&gt;-&amp;gt; SAS can't add a missing value to 100, so the result is a missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 13:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615133#M179906</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-04T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615137#M179908</link>
      <description>Thank You for the clear explanation</description>
      <pubDate>Sat, 04 Jan 2020 13:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615137#M179908</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615138#M179909</link>
      <description>Thank You for explanation</description>
      <pubDate>Sat, 04 Jan 2020 13:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615138#M179909</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T13:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615139#M179910</link>
      <description>you're welcome !</description>
      <pubDate>Sat, 04 Jan 2020 13:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615139#M179910</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-04T13:59:32Z</dc:date>
    </item>
    <item>
      <title>sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615140#M179911</link>
      <description>&lt;P&gt;Can&amp;nbsp;you make me understand this as well please, and what would be the results , here they said 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy;"&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; Passengers;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; OrigPassengers=&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 12pt;"&gt;then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OrigPassengers=&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TransPassengers=&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OrigPassengers=&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NonPaying=&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalPassengers= &lt;STRONG&gt;sum (OrigPassengers,TransPassengers );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy;"&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 14:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615140#M179911</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615141#M179912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301371"&gt;@souji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe you mean:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; Passengers;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; OrigPassengers &lt;FONT color="#FF0000"&gt;= .&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OrigPassengers=&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TransPassengers=&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OrigPassengers=&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NonPaying=&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TotalPassengers= &lt;STRONG&gt;sum (OrigPassengers,TransPassengers);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;gt; in this case, TotalPassengers= sum (OrigPassengers,TransPassengers) will be equivalent to&amp;nbsp;TotalPassengers= sum (.,100).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The result will be 100, because the &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245953.htm" target="_self"&gt;SUM()&lt;/A&gt; function&amp;nbsp;returns the&amp;nbsp;sum of the nonmissing values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 14:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615141#M179912</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-04T14:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: sum statement missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615143#M179914</link>
      <description>&lt;P&gt;thank you very much&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 17:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615143#M179914</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T17:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615144#M179915</link>
      <description>&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 17:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615144#M179915</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T17:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615145#M179916</link>
      <description>&lt;P&gt;Thank You very much&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 17:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615145#M179916</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615149#M179917</link>
      <description>&lt;P&gt;Or if you prefer, the CATS function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data staff;
	length JobCategory $3.;
	JobCategory='FA';
	JobLevel='1';
	JobCategory=cats(JobCategory, JobLevel);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Jan 2020 21:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615149#M179917</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-04T21:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating two variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615155#M179921</link>
      <description>&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 22:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-two-variable/m-p/615155#M179921</guid>
      <dc:creator>souji</dc:creator>
      <dc:date>2020-01-04T22:59:28Z</dc:date>
    </item>
  </channel>
</rss>

