<?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: Query values accross table and column name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781658#M249098</link>
    <description>&lt;P&gt;From where do you get the values for this fourth variable?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 06:21:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-22T06:21:31Z</dc:date>
    <item>
      <title>Query values accross table and column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781648#M249097</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;I'm trying to find/search values from across tables or columns name based on value name that i want to search. So far, i could search and show the tables or columns by table or column name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is my script that i used to&amp;nbsp;search and show the tables or columns by table or column name:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CONNECT TO ORACLE (USER="xxxx" PASSWORD="xxxx"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PATH="(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = xxx)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(HOST = xxxxxxx) (PORT = xxxxx)))(CONNECT_DATA =(xxx = xxxx )))");&lt;BR /&gt;CREATE TABLE CEK.CEK_DWH_COLUMN (COMPRESS=YES) AS&lt;BR /&gt;SELECT * FROM CONNECTION TO ORACLE&lt;BR /&gt;(&lt;BR /&gt;SELECT owner, table_name, column_name FROM all_tab_columns WHERE column_name LIKE '%PRODUCT%');&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;From that query, the result in .bdat like example below:&lt;BR /&gt;OWNER | TABLE_NAME | COLUMN_NAME&lt;/P&gt;&lt;P&gt;DWH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROUDUCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PROGRAM&lt;/P&gt;&lt;P&gt;DWH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROUDUCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SRRKID&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result that i want, are like this below:&lt;/P&gt;&lt;P&gt;OWNER | TABLE_NAME | COLUMN_NAME | VALUES_NAME&lt;/P&gt;&lt;P&gt;DWH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROUDUCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PROGRAM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TITANIUM&lt;/P&gt;&lt;P&gt;DWH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROUDUCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SRRKID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 32102&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me, how to&amp;nbsp;find/search values from across tables or columns name based on values name?, thanks for your attention.&lt;BR /&gt;&lt;BR /&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 03:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781648#M249097</guid>
      <dc:creator>BL_463_IDR</dc:creator>
      <dc:date>2021-11-22T03:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query values accross table and column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781658#M249098</link>
      <description>&lt;P&gt;From where do you get the values for this fourth variable?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 06:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781658#M249098</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-22T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query values accross table and column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781882#M249204</link>
      <description>i want to get the values from accross the table_name and column_name</description>
      <pubDate>Tue, 23 Nov 2021 08:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781882#M249204</guid>
      <dc:creator>BL_463_IDR</dc:creator>
      <dc:date>2021-11-23T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query values accross table and column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781884#M249205</link>
      <description>&lt;P&gt;This does not answer my question. The values are not present in your example data, so from where do you get them?&lt;/P&gt;
&lt;P&gt;See Maxim 42. Posting a &lt;U&gt;detailed&lt;/U&gt; question will get you answers beyond "42".&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-values-accross-table-and-column-name/m-p/781884#M249205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-23T08:26:10Z</dc:date>
    </item>
  </channel>
</rss>

