<?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: RENAME STATEMENT in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566401#M11344</link>
    <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;you have (rename =(jcode=jobcode))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;do you mean to have this&amp;nbsp; (rename =(jobcode=jcode))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jun 2019 20:07:46 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-06-15T20:07:46Z</dc:date>
    <item>
      <title>RENAME STATEMENT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566400#M11343</link>
      <description>&lt;P&gt;what is wrong with this dataset, and what is the best way to code it?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data work.comapany;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set work.dept1 (keep=jobecode)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; work. dept2 (rename =(jcode=jobcode));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 20:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566400#M11343</guid>
      <dc:creator>swayto</dc:creator>
      <dc:date>2019-06-15T20:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME STATEMENT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566401#M11344</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;you have (rename =(jcode=jobcode))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f4f4f4; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;do you mean to have this&amp;nbsp; (rename =(jobcode=jcode))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 20:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566401#M11344</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-15T20:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME STATEMENT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566404#M11345</link>
      <description>&lt;P&gt;First of all, the code is written in a very ugly way, and only its small size makes it still easy to understand, more or less.&lt;/P&gt;
&lt;P&gt;At least try to do some consistent visual formatting, it will help you in the future.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   data work.comapany;
        set work.dept1 (keep=jobecode); /* this semicolon must not be here, as it ends the set statement prematurely */
             work. dept2 (rename =(jcode=jobcode)); /* the blank between the dot and dept2 will cause an ERROR, and the order in the rename is wrong */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jun 2019 20:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566404#M11345</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-15T20:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME STATEMENT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566436#M11353</link>
      <description>&lt;P&gt;Hard to tell if there are issues (other than obvious typos like extra semi-colon. two spellings for JOBCODE, inserted space etc) without knowing what the intent was.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not that big a fan of using KEEP=/DROP=/RENAME= dataset options instead of using the KEEP/DROP/RENAME statements, although there are some things they are best for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you want to keep the variable JCODE and rename it to JOBCODE.&amp;nbsp; But then why is the target dataset named COMPANY instead of JOB (or JOBS).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you meant to do something like this to create one dataset with one variable that lists all of the JOBCODE/JCODE values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data jobs;
  set dept1 (keep=jobcode)
      dept2 (keep=jcode rename =(jcode=jobcode))
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 12:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RENAME-STATEMENT/m-p/566436#M11353</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-16T12:30:21Z</dc:date>
    </item>
  </channel>
</rss>

