<?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 Dynamic Check Dataset Exists in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Check-Dataset-Exists/m-p/3669#M1562</link>
    <description>Hello All,&lt;BR /&gt;
&lt;BR /&gt;
I have a program that needs to be manually changed every month to take into account the latest monthly file (I have to add a new libname line every month and add the correspoding libname reference to my SET statement in my DATA step).  I could obviously create libname statements for the months that haven't occured yet, but then I would still have to add the libname reference in the DATA step each month or else the program would tell me dataset doesn't exist.  Is there any way around this?&lt;BR /&gt;
&lt;BR /&gt;
Jose</description>
    <pubDate>Fri, 29 Jun 2007 16:01:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-06-29T16:01:17Z</dc:date>
    <item>
      <title>Dynamic Check Dataset Exists</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Check-Dataset-Exists/m-p/3669#M1562</link>
      <description>Hello All,&lt;BR /&gt;
&lt;BR /&gt;
I have a program that needs to be manually changed every month to take into account the latest monthly file (I have to add a new libname line every month and add the correspoding libname reference to my SET statement in my DATA step).  I could obviously create libname statements for the months that haven't occured yet, but then I would still have to add the libname reference in the DATA step each month or else the program would tell me dataset doesn't exist.  Is there any way around this?&lt;BR /&gt;
&lt;BR /&gt;
Jose</description>
      <pubDate>Fri, 29 Jun 2007 16:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Check-Dataset-Exists/m-p/3669#M1562</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-06-29T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Check Dataset Exists</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Check-Dataset-Exists/m-p/3670#M1563</link>
      <description>Hi,&lt;BR /&gt;
  This is not an ODS question or a BASE Reporting procedure question.&lt;BR /&gt;
 &lt;BR /&gt;
  What you want to do can probably be accomplished with the use of SAS Macro programming and several possible methods, which include, but are not limited to using functions that check for data set existence or using the dataset dictionary.tables (assuming that you have issued a LIBNAME statement), or even piping the results of a DIR command to a file and then building the LIBNAME statement and DATA step program dynamically with SAS Macro.&lt;BR /&gt;
 &lt;BR /&gt;
  Your best bet for help with this question is to contact Tech Support and/or to search for other papers like this one:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/029-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/029-31.pdf&lt;/A&gt;&lt;BR /&gt;
that show the kind of techniques you would need to use.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 29 Jun 2007 17:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Check-Dataset-Exists/m-p/3670#M1563</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-06-29T17:21:07Z</dc:date>
    </item>
  </channel>
</rss>

