<?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 How can I hide the column in using the DATA step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562049#M157410</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code. I want to hide only those columns ( more then 20)&amp;nbsp;after I have imported the file in the SAS format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work1.AAA_import;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work.AAA_import&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;orgID org_name surveyID &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I wrote this code . is there any other way to hide the larger number of column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 18:43:44 GMT</pubDate>
    <dc:creator>Pups</dc:creator>
    <dc:date>2019-05-28T18:43:44Z</dc:date>
    <item>
      <title>How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562049#M157410</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code. I want to hide only those columns ( more then 20)&amp;nbsp;after I have imported the file in the SAS format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work1.AAA_import;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work.AAA_import&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;orgID org_name surveyID &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I wrote this code . is there any other way to hide the larger number of column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 18:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562049#M157410</guid>
      <dc:creator>Pups</dc:creator>
      <dc:date>2019-05-28T18:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562054#M157414</link>
      <description>&lt;P&gt;Does your code work? And if not, what does the log say?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 19:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562054#M157414</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562056#M157416</link>
      <description>&lt;P&gt;What do you mean by "hide"? Do you mean eliminate the column so it is no longer in the data set, or somehow set things up so the&amp;nbsp; column remains in the data set but isn't displayed. &lt;STRONG&gt;How do you want to view this data set with hidden columns (what specific method in SAS are you going to use to view the data set with hidden columns?)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want the column to not appear when you look at the data set, you can create a view of the data set in PROC SQL which only will show specific columns that you select, and will not show other columns (even though those other columns are still in the data set).&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 19:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562056#M157416</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-28T19:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562070#M157420</link>
      <description>&lt;P&gt;SAS does not have a concept of 'hiding' columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can drop a column, but that removes it from the table entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this type of coding is problematic because now your original table is destroyed and to re-create it you have to re-import your data.&lt;/P&gt;
&lt;P&gt;Don't use the same name in your DATA and SET statement unless your code is fully functioning and tested and you need to reduce space for some reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA work1.AAA_import;

SET work.AAA_import;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/275827"&gt;@Pups&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my code. I want to hide only those columns ( more then 20)&amp;nbsp;after I have imported the file in the SAS format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work1.AAA_import;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work.AAA_import&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;orgID org_name surveyID &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I wrote this code . is there any other way to hide the larger number of column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 19:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562070#M157420</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-28T19:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562089#M157423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't want to use these columns anywhere in your new data set, then you use drop= option in the set statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt; work1.AAA_import;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New" color="#0000ff"&gt;SET&lt;/FONT&gt;&lt;FONT size="2" face="Courier New"&gt; work.AAA_import&lt;/FONT&gt; (drop= &lt;FONT size="2" face="Courier New"&gt;orgID org_name surveyID&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anushree&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 19:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562089#M157423</guid>
      <dc:creator>anushreebiotech</dc:creator>
      <dc:date>2019-05-28T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I hide the column in using the DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562132#M157449</link>
      <description>&lt;P&gt;As other has told you, hiding doesn't really exist as a concept in this case. But if you want to remove many variables at once there are some tricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Remove all variables between (and including) the variables named below;
data x;
	set sashelp.baseball;
	drop nAtBat--CrBB;
run;

*Remove all variables starting with cr. We can use the : as a wildcard, but only "ending with".;
data x;
	set sashelp.baseball;
	drop cr: ;
run;

*Remove all variables of one type. ;
data z;
	set sashelp.baseball;
	drop _char_ ; * or use _numeric_ ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 00:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-hide-the-column-in-using-the-DATA-step/m-p/562132#M157449</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-05-29T00:55:24Z</dc:date>
    </item>
  </channel>
</rss>

