<?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: I have problem with strange notes in prod tabulate like NOTE: Variable XX already exists ... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951610#M371978</link>
    <description>Thanks, I'll check ut out</description>
    <pubDate>Fri, 22 Nov 2024 10:19:34 GMT</pubDate>
    <dc:creator>LtRogers</dc:creator>
    <dc:date>2024-11-22T10:19:34Z</dc:date>
    <item>
      <title>Problem with strange notes in proc tabulate like NOTE: Variable XX already exists ...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951197#M371868</link>
      <description>&lt;P&gt;My proc tabulate&lt;/P&gt;
&lt;DIV&gt;proc tabulate data=s_18&amp;nbsp; format=nlnum32. out=s_18_CF;&lt;/DIV&gt;
&lt;DIV&gt;class original_currency yearno company_name company_bk company_type_code period_name typeno;&lt;/DIV&gt;
&lt;DIV&gt;var &amp;nbsp; epifp;&lt;/DIV&gt;
&lt;DIV&gt;by &amp;nbsp; &amp;nbsp;Company_Name company_bk company_type_code period_name ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;table yearno='Year'*company_name='Company'*company_bk='nr'*company_type_code='Institutgroup'*original_currency='Curr'*period_name='Period'&lt;/DIV&gt;
&lt;DIV&gt;all='Total', all='Total'*(epifp);&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;BR /&gt;&lt;BR /&gt;I get this notes in the log and I can't understand why. Has anyone an idea of why? Why does SAS create new names?&lt;BR /&gt;&lt;SPAN&gt;NOTE: Variable Company_Name already exists on file WORK.S_18_CF, using Company_Name2 instead.&lt;BR /&gt;&lt;/SPAN&gt;
&lt;DIV&gt;NOTE: Variable Company_BK already exists on file WORK.S_18_CF, using Company_BK2 instead.&lt;/DIV&gt;
&lt;DIV&gt;NOTE: Variable Company_Type_Code already exists on file WORK.S_18_CF, using Company_Type_Code2 instead.&lt;/DIV&gt;
&lt;DIV&gt;NOTE: Variable Period_Name already exists on file WORK.S_18_CF, using Period_Name2 instead.&lt;/DIV&gt;
&lt;DIV&gt;NOTE: The above message was for the following BY group:&lt;/DIV&gt;
&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Company name=XXX Company_BK=NNNN Company type code=SSS Period name=2022&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Nov 2024 07:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951197#M371868</guid>
      <dc:creator>LtRogers</dc:creator>
      <dc:date>2024-11-20T07:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem with strange notes in prod tabulate like NOTE: Variable XX already exists ...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951205#M371869</link>
      <description>&lt;P&gt;You're asking proc tabulate to use variables in the table crossings AND in the BY groups.&lt;/P&gt;
&lt;P&gt;The variables are used twice in your logic, so they appear twice in the output data set and need different names.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 21:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951205#M371869</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-11-19T21:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem with strange notes in prod tabulate like NOTE: Variable XX already exists ...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951295#M371891</link>
      <description>&lt;P&gt;From the looks of it and to avoid the root cause for warnings as explained by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;I believe one of below coding options should return what you're after.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=s_18  format=nlnum32. out=s_18_CF;
  class original_currency yearno company_name company_bk company_type_code period_name typeno;
  var   epifp;
  table 
    Company_Name
      *company_bk
    ,yearno='Year'
      *company_type_code='Institutgroup'
      *original_currency='Curr'
      *period_name='Period'
      all='Total'
    ,all='Total'
      *epifp
    ;
run;

proc tabulate data=s_18  format=nlnum32. out=s_18_CF;
  by Company_Name company_bk;
  class original_currency yearno company_type_code period_name typeno;
  var   epifp;
  table 
    yearno='Year'
      *company_type_code='Institutgroup'
      *original_currency='Curr'
      *period_name='Period'
      all='Total'
    ,all='Total'
      *epifp
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 03:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951295#M371891</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-11-20T03:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem with strange notes in prod tabulate like NOTE: Variable XX already exists ...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951610#M371978</link>
      <description>Thanks, I'll check ut out</description>
      <pubDate>Fri, 22 Nov 2024 10:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-strange-notes-in-proc-tabulate-like-NOTE-Variable/m-p/951610#M371978</guid>
      <dc:creator>LtRogers</dc:creator>
      <dc:date>2024-11-22T10:19:34Z</dc:date>
    </item>
  </channel>
</rss>

