<?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 How to set a password for multiple datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803022#M316197</link>
    <description>&lt;P&gt;I have several hundred datasets which all need to have password protection added (the same password for all datasets). The naming convention used is data_yyyyMMMdd with the dates increasing weekly (example: data_2022mar13, data_2022mar20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to modify all datasets in the dataset procedure?&amp;nbsp; &amp;nbsp;I looked at the example date %do loop here:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n01vuhy8h909xgn16p0x6rddpoj9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n01vuhy8h909xgn16p0x6rddpoj9.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however SAS doesn't seem to recognize the yyyyMMMdd date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 03:27:08 GMT</pubDate>
    <dc:creator>mkb321</dc:creator>
    <dc:date>2022-03-21T03:27:08Z</dc:date>
    <item>
      <title>How to set a password for multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803022#M316197</link>
      <description>&lt;P&gt;I have several hundred datasets which all need to have password protection added (the same password for all datasets). The naming convention used is data_yyyyMMMdd with the dates increasing weekly (example: data_2022mar13, data_2022mar20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to modify all datasets in the dataset procedure?&amp;nbsp; &amp;nbsp;I looked at the example date %do loop here:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n01vuhy8h909xgn16p0x6rddpoj9.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n01vuhy8h909xgn16p0x6rddpoj9.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however SAS doesn't seem to recognize the yyyyMMMdd date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 03:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803022#M316197</guid>
      <dc:creator>mkb321</dc:creator>
      <dc:date>2022-03-21T03:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a password for multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803029#M316200</link>
      <description>&lt;P&gt;How about this? Run to see how it works and complete as required.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output members=MEMBERS;
proc datasets lib=WORK ;
run;
ods output close;

data _null_;
  set MEMBERS;
  where MEMTYPE='DATA';
  if _N_=1 then call execute('proc datasets lib=WORK;');
  call execute('modify '||NAME||';');
run;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 04:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803029#M316200</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-21T04:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a password for multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803030#M316201</link>
      <description>&lt;P&gt;If these tables are all in a single or only a few libraries then another option could be the use of metadata bound libraries.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1nesjvtxu7783n1pveml8ct4txk.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1nesjvtxu7783n1pveml8ct4txk.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 05:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-password-for-multiple-datasets/m-p/803030#M316201</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-03-21T05:01:11Z</dc:date>
    </item>
  </channel>
</rss>

