<?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: proc datasets content statement and default memtype in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812043#M320361</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;Both memtype=view and memtype=all work.&lt;BR /&gt;Test with the followig sample code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data classv / view = classv ;
set sashelp.class;
run;
proc datasets lib=work memtype=view nolist;
    contents data=classv;* memtype=all by default; 
    run;
quit;
proc datasets lib=work memtype=all nolist;
    contents data=classv;; 
    run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 May 2022 00:43:06 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2022-05-09T00:43:06Z</dc:date>
    <item>
      <title>proc datasets content statement and default memtype</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812011#M320349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The SAS Online Documentation suggests that memtype=data in the contents statement of proc datasets.&lt;/P&gt;
&lt;P&gt;But when I'm testing with a vew, it seems that memtype=all by default. Did I miss something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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-inline" image-alt="contents_statement.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71206iAD7970C34102498D/image-size/large?v=v2&amp;amp;px=999" role="button" title="contents_statement.JPG" alt="contents_statement.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1v2467vdjbp7xn1222c7t3sejz3.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1v2467vdjbp7xn1222c7t3sejz3.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vclass / view=vclass;
    set sashelp.class;
run;

title 'proc contents';
proc contents data   =vclass 
              memtype=view; *memtype=data by default;
run;

title 'proc datasets';
proc datasets lib=work memtype=cat nolist;
    contents data=vclass;* memtype=all by default; 
    run;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 17:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812011#M320349</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-05-08T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets content statement and default memtype</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812043#M320361</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Both memtype=view and memtype=all work.&lt;BR /&gt;Test with the followig sample code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data classv / view = classv ;
set sashelp.class;
run;
proc datasets lib=work memtype=view nolist;
    contents data=classv;* memtype=all by default; 
    run;
quit;
proc datasets lib=work memtype=all nolist;
    contents data=classv;; 
    run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2022 00:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812043#M320361</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-05-09T00:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets content statement and default memtype</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812083#M320387</link>
      <description>My issue is not to be unable to use views. &lt;BR /&gt;&lt;BR /&gt;My issue is the discrepancy &lt;BR /&gt;between the online documentation (memtype is said to be data by default)&lt;BR /&gt;and what is actually happening (memtype is all - both view and data to be precise - by default)&lt;BR /&gt;when using the contents statement of proc datasets.</description>
      <pubDate>Mon, 09 May 2022 07:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812083#M320387</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-05-09T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets content statement and default memtype</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812135#M320413</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I don't see any descripancy in the documentation and practice.&lt;/P&gt;
&lt;PRE&gt;But when I'm testing with a vew, it seems that memtype=all by default. Did I miss something?&lt;/PRE&gt;
&lt;P&gt;Well when using Contents with Proc datasets one is normally expected to mention the memtype. However it is not necessary.If we do not use the memtype= option in the Proc datasets statement, it takes the value as all (the default value ) and itereates through the all applicable (view and data for contents in addition to all) and generates the result.&lt;/P&gt;
&lt;P&gt;Default option is essentially the option the procedure takes when nothing is mentioned.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-datasets-content-statement-and-default-memtype/m-p/812135#M320413</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-05-09T11:45:12Z</dc:date>
    </item>
  </channel>
</rss>

