<?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: How to hide the created variable column from my table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562541#M157597</link>
    <description>&lt;P&gt;It is not at all clear what you are trying to do.&amp;nbsp; You cannot "hide" a variable.&amp;nbsp; But there is no reason why you need to "show" variables other than the ones you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you showing the data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using a PROC then only list the variables you want.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means;
  var a b c ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or drop the variable you don't want.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=mydata (drop=yearcount);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Some procedures, like PROC REPORT, can let you use a variable to control the report but not display the variable's value in the report.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define yearcount / noprint ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 May 2019 12:47:30 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-05-30T12:47:30Z</dc:date>
    <item>
      <title>How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562501#M157584</link>
      <description>&lt;P&gt;Hi, was struggle about how to hide the created&amp;nbsp;variable column from the table.&lt;/P&gt;&lt;P&gt;I don't want it to be shown in the table but I want to use it for calculations afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Foe example, the variable column that I have created is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yearcount=zclmpd+1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want my table show the yearcount variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve this problem? isit by using %let statement?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 09:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562501#M157584</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-05-30T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562514#M157591</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;drop yearcount;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 11:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562514#M157591</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-05-30T11:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562523#M157592</link>
      <description>&lt;P&gt;Have you considered creating a view with just the columns you want to see?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some examples are shown in the SAS documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n0nolnbokay91in1gouzgw3xzl5e.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n0nolnbokay91in1gouzgw3xzl5e.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original table will still have the &lt;FONT face="courier new,courier"&gt;yearcount&lt;/FONT&gt; variable for you to use later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 11:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562523#M157592</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-05-30T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562531#M157593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274500"&gt;@Kayla_Tan222&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I don't want my table show the yearcount variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What method in SAS you are you using to "show" the data? Please be specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, PROC PRINT and PROC REPORT allow you to show any columns you want and leave out any other columns you don't want. Also, as mentioned by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;&amp;nbsp;you can use PROC SQL to create a view with only selected columns and then VIEWTABLE (for example) shows only the columns selected.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 12:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562531#M157593</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-30T12:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562539#M157596</link>
      <description>&lt;P&gt;Create a VIEW and show it to your colleague .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create view want as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;select a,b,c,d&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;from have;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 12:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562539#M157596</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-30T12:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the created variable column from my table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562541#M157597</link>
      <description>&lt;P&gt;It is not at all clear what you are trying to do.&amp;nbsp; You cannot "hide" a variable.&amp;nbsp; But there is no reason why you need to "show" variables other than the ones you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you showing the data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using a PROC then only list the variables you want.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means;
  var a b c ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or drop the variable you don't want.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=mydata (drop=yearcount);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Some procedures, like PROC REPORT, can let you use a variable to control the report but not display the variable's value in the report.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define yearcount / noprint ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 May 2019 12:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-hide-the-created-variable-column-from-my-table/m-p/562541#M157597</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-30T12:47:30Z</dc:date>
    </item>
  </channel>
</rss>

