<?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: Columns used in project in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499504#M132935</link>
    <description>&lt;P&gt;SASHELP.VCOLUMNS will only give you columns where libnames have been assigned, i.e. only if SAS Knows about the tables can it give the information.&amp;nbsp; Some further information would be useful.&amp;nbsp; What "project" - i.e. what software are you using.&amp;nbsp; Do you have some sort of setup file?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 13:28:09 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-09-27T13:28:09Z</dc:date>
    <item>
      <title>Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499496#M132929</link>
      <description>&lt;P&gt;Is there any way to get the list of all columns in a project which are being used? Sashelp.vcolumn will give me all columns from certain tables, not only the ones i used in queries and programs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499496#M132929</guid>
      <dc:creator>sasuser381</dc:creator>
      <dc:date>2018-09-27T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499501#M132932</link>
      <description>&lt;P&gt;Hello sasuser381 (creative name ;P),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc contents data=TABLE_NAME; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you get the table (specified) column names and attributes... is this what you're looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Alphabetic List of Variables and Attributes# Variable Type Len Format Label &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;EMP_BANDS&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;$9.&lt;/TD&gt;&lt;TD&gt;EMP_BANDS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;INCOME_BANDS&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;$7.&lt;/TD&gt;&lt;TD&gt;INCOME_BANDS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;INT_RATE_MARGIN_BANDS&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;$18.&lt;/TD&gt;&lt;TD&gt;INT_RATE_MARGIN_BANDS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;LOAN_BANDS&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;$8.&lt;/TD&gt;&lt;TD&gt;LOAN_BANDS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Loan_Amount&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;18.2&lt;/TD&gt;&lt;TD&gt;Loan Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marlene&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499501#M132932</guid>
      <dc:creator>Mar1ene</dc:creator>
      <dc:date>2018-09-27T13:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499504#M132935</link>
      <description>&lt;P&gt;SASHELP.VCOLUMNS will only give you columns where libnames have been assigned, i.e. only if SAS Knows about the tables can it give the information.&amp;nbsp; Some further information would be useful.&amp;nbsp; What "project" - i.e. what software are you using.&amp;nbsp; Do you have some sort of setup file?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499504#M132935</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-27T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499508#M132937</link>
      <description>&lt;P&gt;I use SAS EG 7.1. and most of the project is done in query buliders or in a custom program. Can i get the list of all colums that are used in in, without running the project?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499508#M132937</guid>
      <dc:creator>sasuser381</dc:creator>
      <dc:date>2018-09-27T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499514#M132941</link>
      <description>&lt;P&gt;I don't believe so.&amp;nbsp; This is a very good reason why you should document your whole process&amp;nbsp;&lt;STRONG&gt;before&lt;/STRONG&gt; even starting to code.&amp;nbsp; No point trying to patch it up afterwards.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run the whole project putting proc scaproc on before will get you all the inputs outputs, and the log will show what code is run.&amp;nbsp; Have fun trying to patch it all together though, you will find out why documenting before even coding is required.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499514#M132941</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-27T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499528#M132945</link>
      <description>&lt;P&gt;Not that I know of. And if you used any select * or SET it somewhat implies that you've used the entire data set. You can try PROC SCAPROC but I don't think it goes down to that level either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/217737"&gt;@sasuser381&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there any way to get the list of all columns in a project which are being used? Sashelp.vcolumn will give me all columns from certain tables, not only the ones i used in queries and programs.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 14:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499528#M132945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-27T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Columns used in project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499561#M132957</link>
      <description>&lt;P&gt;Maybe this is useful in what you want to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://bi-notes.com/2012/10/sas-code-show-sas-macro-variables/&amp;nbsp;" target="_blank"&gt;http://bi-notes.com/2012/10/sas-code-show-sas-macro-variables/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 15:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Columns-used-in-project/m-p/499561#M132957</guid>
      <dc:creator>Mar1ene</dc:creator>
      <dc:date>2018-09-27T15:41:38Z</dc:date>
    </item>
  </channel>
</rss>

