<?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 DOCUMENT : wildcards? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686674#M24487</link>
    <description>&lt;P&gt;Ok, you can do this using proc sql and Dictionary tables:&lt;BR /&gt;(&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00cato8pe46ein1bjcimkkx6hzd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00cato8pe46ein1bjcimkkx6hzd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;)&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(distinct memname) /* not sure it’s memname, view table to verify */&lt;BR /&gt;:into &amp;amp;nrep&lt;BR /&gt;from dictionary.tables /* not sure it's .tables, check above website to verify */&lt;BR /&gt;where libname = “YOUR_CATALOG”&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%put &amp;amp;nrep; *check in log that there is something there;&lt;BR /&gt;&lt;BR /&gt;Please make sure that name of library is in capital letters.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 12:50:25 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2020-09-25T12:50:25Z</dc:date>
    <item>
      <title>PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/685050#M24474</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to use wildcards in PROC DOCUMENT. For example I would like to perform the same action on all objects within a document directory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc document name=test;
 dir \listings;
 obpage \LISTING#1\Report#1\Report#1\Report#1 / after delete;
 obpage \LISTING#1\Report#2\Report#1\Report#1 / after delete;
 obpage \LISTING#1\Report#3\Report#1\Report#1 / after delete;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;replace with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc document name=test;
 dir \listings;
 obpage \LISTING#1\* / after delete;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;anyone know if this is possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kind regards,&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 17:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/685050#M24474</guid>
      <dc:creator>RichardP</dc:creator>
      <dc:date>2020-09-18T17:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/685097#M24475</link>
      <description>You can do this with a macro:&lt;BR /&gt;%macro cookie;&lt;BR /&gt;proc document name=test;&lt;BR /&gt; dir \listings;&lt;BR /&gt;%do i = 1 %to 3;&lt;BR /&gt; obpage \LISTING#1\Report#&amp;amp;i.\Report#1\Report#1 / after delete;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%cookie;</description>
      <pubDate>Fri, 18 Sep 2020 20:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/685097#M24475</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-09-18T20:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686294#M24476</link>
      <description>&lt;P&gt;thanks, yes this would be an acceptable solution. I have not checked yet but is it possible to extract the number of reports for the %do loop value?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686294#M24476</guid>
      <dc:creator>RichardP</dc:creator>
      <dc:date>2020-09-24T07:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686387#M24478</link>
      <description>You can supply that parameter into a macro:&lt;BR /&gt;* nrep is number of reports;&lt;BR /&gt;%cookie(nrep);&lt;BR /&gt;...&lt;BR /&gt;%do i %to &amp;amp;nrep;&lt;BR /&gt;...&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%cookie(&amp;amp;nrep);</description>
      <pubDate>Thu, 24 Sep 2020 14:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686387#M24478</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-09-24T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686649#M24485</link>
      <description>The thing is I will not always know how many reports are in my catalog. I need this to be dynamic.</description>
      <pubDate>Fri, 25 Sep 2020 09:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686649#M24485</guid>
      <dc:creator>RichardP</dc:creator>
      <dc:date>2020-09-25T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT : wildcards?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686674#M24487</link>
      <description>&lt;P&gt;Ok, you can do this using proc sql and Dictionary tables:&lt;BR /&gt;(&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00cato8pe46ein1bjcimkkx6hzd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p00cato8pe46ein1bjcimkkx6hzd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;)&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(distinct memname) /* not sure it’s memname, view table to verify */&lt;BR /&gt;:into &amp;amp;nrep&lt;BR /&gt;from dictionary.tables /* not sure it's .tables, check above website to verify */&lt;BR /&gt;where libname = “YOUR_CATALOG”&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%put &amp;amp;nrep; *check in log that there is something there;&lt;BR /&gt;&lt;BR /&gt;Please make sure that name of library is in capital letters.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 12:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-wildcards/m-p/686674#M24487</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-09-25T12:50:25Z</dc:date>
    </item>
  </channel>
</rss>

