<?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 proc dataset / proc contents in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218365#M53709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using this: proc datasets lib=tran1214 nolist;contents data=_all_ noprint out=MDJ.tran1214;quit;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can search the output to find a table that has one or several variables that I need to use.&amp;nbsp; There is one table that has a corrupted table so it will not work.&amp;nbsp; I would like to do something like this (this does not work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib=wbdw nolist;&lt;/P&gt;&lt;P&gt;contents data = ABS_02PORTFOLIO_CONVERSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_CONCENTRATION_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_CUSTOMER_DIMENSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_LOAN_DIMENSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_ACTIVITY_DIM&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_ATTEND_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_CONTACT_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I'm taking this output with several hundred tables and putting it into excel to search for variables.&amp;nbsp; Is there a way to list multiple datasets rather than _all_?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the output to feed into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select DISTINCT MEMNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from &amp;amp;check_lib &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_PARTICIPATED_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_CUST_INTEREST_BAL_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_FEE_CURRENT_PAYOFF_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*memname in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME) contains "DEFAULT_DATE_END") AND*/&lt;/P&gt;&lt;P&gt;MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME) contains "PD");&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a few things with no viable solutions, any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 20:53:48 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-04-09T20:53:48Z</dc:date>
    <item>
      <title>proc dataset / proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218365#M53709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using this: proc datasets lib=tran1214 nolist;contents data=_all_ noprint out=MDJ.tran1214;quit;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can search the output to find a table that has one or several variables that I need to use.&amp;nbsp; There is one table that has a corrupted table so it will not work.&amp;nbsp; I would like to do something like this (this does not work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib=wbdw nolist;&lt;/P&gt;&lt;P&gt;contents data = ABS_02PORTFOLIO_CONVERSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_CONCENTRATION_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_CUSTOMER_DIMENSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = ACLS_LOAN_DIMENSION&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_ACTIVITY_DIM&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_ATTEND_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;contents data = AGENDA_CONTACT_FACT&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I'm taking this output with several hundred tables and putting it into excel to search for variables.&amp;nbsp; Is there a way to list multiple datasets rather than _all_?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the output to feed into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select DISTINCT MEMNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from &amp;amp;check_lib &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_PARTICIPATED_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_CUST_INTEREST_BAL_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME)="ACCT_FEE_CURRENT_PAYOFF_AMT") AND*/&lt;/P&gt;&lt;P&gt;/*memname in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME) contains "DEFAULT_DATE_END") AND*/&lt;/P&gt;&lt;P&gt;MEMNAME in (select distinct MEMNAME from &amp;amp;check_lib where upcase(NAME) contains "PD");&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a few things with no viable solutions, any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 20:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218365#M53709</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-09T20:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc dataset / proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218366#M53710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to use your SQL on the special SAS DICTIONARY.COLUMNS.&lt;/P&gt;&lt;P&gt;Use this to see the description:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;describe table dictionary.columns;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;and then something search the dictionary table to find the memnames with the columns you need. Specify the LIBNAME='YOURLIBGOESHERE' in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could drop all of the UPCASE functions as the LIBNAME, MEMNAME and NAME variables are all upper case in the dictionary tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 21:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218366#M53710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-09T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc dataset / proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218367#M53711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just delete the corrupted table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 21:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218367#M53711</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-04-09T21:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc dataset / proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218368#M53712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 01:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-dataset-proc-contents/m-p/218368#M53712</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-10T01:18:18Z</dc:date>
    </item>
  </channel>
</rss>

