<?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: character variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433744#M107565</link>
    <description>&lt;P&gt;|| is&amp;nbsp;similar to the catt function, i.e., it combines strings without trimming spaces from the right or removing any leading spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2018 02:16:16 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2018-02-03T02:16:16Z</dc:date>
    <item>
      <title>character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433734#M107560</link>
      <description>&lt;P&gt;The following SAS program is submitted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.staff;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JobCategory = ‘FA’;&lt;/P&gt;&lt;P&gt;JobLevel = ‘1’;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jobcategory = Jobcategory || JobLevel; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which one of the following is the value of the variable JOBCATEGORY in the output data set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FA&lt;/LI&gt;&lt;LI&gt;FA1&lt;/LI&gt;&lt;LI&gt;FA 1&lt;/LI&gt;&lt;LI&gt;‘‘(missing character value)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Answer: A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how is it option A?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 00:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433734#M107560</guid>
      <dc:creator>VISHNU239</dc:creator>
      <dc:date>2018-02-03T00:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433737#M107561</link>
      <description>&lt;P&gt;Because the length of JobCategory is set as 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, just as interesting, try to figure out the results of:&lt;/P&gt;
&lt;PRE&gt;data work.staff; 
  JobCategory = 'FA';
  JobLevel = '1'; 
  Jobcategory2 = Jobcategory || JobLevel;
  Jobcategory = Jobcategory || JobLevel;
  output;
  JobCategory = 'FAA';
  JobLevel = '2'; 
  Jobcategory2 = Jobcategory || JobLevel;
  Jobcategory = Jobcategory || JobLevel;
  output;
run;

&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 01:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433737#M107561</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-02-03T01:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433740#M107563</link>
      <description>yeah got it sir. examples helped me in understanding. what does the symbol || mean and what is its function?</description>
      <pubDate>Sat, 03 Feb 2018 01:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433740#M107563</guid>
      <dc:creator>VISHNU239</dc:creator>
      <dc:date>2018-02-03T01:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: character variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433744#M107565</link>
      <description>&lt;P&gt;|| is&amp;nbsp;similar to the catt function, i.e., it combines strings without trimming spaces from the right or removing any leading spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 02:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-variable/m-p/433744#M107565</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-02-03T02:16:16Z</dc:date>
    </item>
  </channel>
</rss>

