<?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: Difference of Metadata between PROC CONTENTS and PROC SQL with DICTIONARY Library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742707#M232373</link>
    <description>&lt;P&gt;The dataset created by PROC CONTENTS is equivalent to DICTIONARY.COLUMNS, and since you do not have any columns ...&lt;/P&gt;
&lt;P&gt;If you run CONTENTS without the NOPRINT option, you'll get the tables containing the dataset attributes, but no variable listing for A.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 16:47:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-05-20T16:47:16Z</dc:date>
    <item>
      <title>Difference of Metadata between PROC CONTENTS and PROC SQL with DICTIONARY Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742704#M232370</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose, I create a dataset "A" which has no colums:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and another dataset, "B", which has columns:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b;
set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now, when I run PROC CONTENTS with the intention to get information about the datasets, which are located in the WORK-Library - as is also shown in Enterprise Guide:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="a_versus_b_dataset.JPG" style="width: 248px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59615iAF8BEAD44208C93A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a_versus_b_dataset.JPG" alt="a_versus_b_dataset.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work._ALL_ out=work.list_of_datasets_proc_contents noprint memtype=data;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;, I only get information about dataset "B". &lt;/SPAN&gt;&lt;FONT color="#993300"&gt;&lt;U&gt;The "A" dataset is not listed, even though it is displayed!!&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;U&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="only_b_dataset.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59616i76330224ECCD4DC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="only_b_dataset.JPG" alt="only_b_dataset.JPG" /&gt;&lt;/span&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;However, when I use PROC SQL with the DICTIONARY-Library:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
create table list_of_datasets_proc_sql as select *
from dictionary.tables
where upcase(libname) in ("WORK")  and memtype eq "DATA"
order by libname, memname
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I get CORRECTLY displayed, that there is also a dataset "A" which has metadata:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="a_and_b_dataset_dictionary.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59617i9BABC3257100854B/image-size/large?v=v2&amp;amp;px=999" role="button" title="a_and_b_dataset_dictionary.JPG" alt="a_and_b_dataset_dictionary.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Why is this behavior occuring?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;Shouldn`t PROC CONTENTS at least also give out the information, that there exists a "A" datset?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;Any insights are highly appreceated.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;Cheers,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#000000"&gt;FK1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 16:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742704#M232370</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2021-05-20T16:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of Metadata between PROC CONTENTS and PROC SQL with DICTIONARY Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742707#M232373</link>
      <description>&lt;P&gt;The dataset created by PROC CONTENTS is equivalent to DICTIONARY.COLUMNS, and since you do not have any columns ...&lt;/P&gt;
&lt;P&gt;If you run CONTENTS without the NOPRINT option, you'll get the tables containing the dataset attributes, but no variable listing for A.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 16:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742707#M232373</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-20T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of Metadata between PROC CONTENTS and PROC SQL with DICTIONARY Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742731#M232386</link>
      <description>&lt;P&gt;Thank you, Kurt. You nailed it!&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 17:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-of-Metadata-between-PROC-CONTENTS-and-PROC-SQL-with/m-p/742731#M232386</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2021-05-20T17:48:23Z</dc:date>
    </item>
  </channel>
</rss>

