<?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: Using Wildcard to define filename, but no variables loading on infile in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361586#M23765</link>
    <description>&lt;P&gt;It's SET not infile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want;
Set SASHELP.class;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You also need a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Libname lib1 '\\sflc-pod-...\wholesale_master';

Data wpm1;
Set lib1.wm_mp1;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 25 May 2017 13:30:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-05-25T13:30:02Z</dc:date>
    <item>
      <title>Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361581#M23764</link>
      <description>&lt;P&gt;I am trying to use a wildcard to load in three sas7bat files that have random dates at the end of their respective file names. I am able to assign the filenames, but what I am having issues understand is how to load the files SAS to use from there. Most post use the data; infile ___; input ___; run; step, but I don't want to specifiy all the input variables as they may change from month to month, I want the code to pull them in automatically as though I were to open the file via the OPEN&amp;gt; DATA menu in Enterprise Guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code and log file that I have so far where it shows it is pulling in zero variables.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename wm_MP1&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;CURRENTMONTH.\FTFR\wholesale_&lt;/SPAN&gt;&lt;SPAN&gt;master_*";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filename wm_MP2&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;MONTHPREVIOUS.\FTFR\wholesale_&lt;/SPAN&gt;&lt;SPAN&gt;master_*";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filename wm_MP3&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;TWOMONTHPREVIOUS.\FTFR\&lt;/SPAN&gt;&lt;SPAN&gt;wholesale_master_*";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;data work.wm_MP1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data work.wm_MP2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data work.wm_MP3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOG FILE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;36&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filename wm_MP1&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;CURRENTMONTH.\FTFR\wholesale_master_*";&lt;BR /&gt;37&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filename wm_MP2&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;MONTHPREVIOUS.\FTFR\wholesale_master_*";&lt;BR /&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filename wm_MP3&amp;nbsp; "\\SFLC-POD-FS\pod-data3\MDR\&amp;amp;TWOMONTHPREVIOUS.\FTFR\wholesale_master_*";&lt;BR /&gt;39&lt;BR /&gt;40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data work.wm_MP1;&lt;BR /&gt;41&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP1;&lt;BR /&gt;42&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile WM_MP1 is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Filename=\\SFLC-POD-FS\pod-data3\MDR\2017-04\FTFR\wholesale_master_20170501.sas7bdat,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RECFM=V,LRECL=32767&lt;BR /&gt;&lt;BR /&gt;NOTE: 0 records were read from the infile WM_MP1.&lt;BR /&gt;NOTE: The data set WORK.WM_MP1 has 1 observations and 0 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01 seconds&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpu time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;43&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data work.wm_MP2;&lt;BR /&gt;44&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP2;&lt;BR /&gt;45&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile WM_MP2 is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Filename=\\SFLC-POD-FS\pod-data3\MDR\2017-03\FTFR\wholesale_master_20170403.sas7bdat,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RECFM=V,LRECL=32767&lt;BR /&gt;&lt;BR /&gt;NOTE: 0 records were read from the infile WM_MP2.&lt;BR /&gt;NOTE: The data set WORK.WM_MP2 has 1 observations and 0 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01 seconds&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpu time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data work.wm_MP3;&lt;BR /&gt;47&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile wm_MP3;&lt;BR /&gt;48&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile WM_MP3 is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Filename=\\SFLC-POD-FS\pod-data3\MDR\2017-02\FTFR\wholesale_master_20170301.sas7bdat,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RECFM=V,LRECL=32767&lt;BR /&gt;&lt;BR /&gt;NOTE: 0 records were read from the infile WM_MP3.&lt;BR /&gt;NOTE: The data set WORK.WM_MP3 has 1 observations and 0 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The SAS System&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN class="aBn"&gt;&lt;SPAN class="aQJ"&gt;06:26&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="aBn"&gt;&lt;SPAN class="aQJ"&gt;Thursday, May 25, 2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cpu time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Erin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361581#M23764</guid>
      <dc:creator>ErinKSimmons</dc:creator>
      <dc:date>2017-05-25T13:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361586#M23765</link>
      <description>&lt;P&gt;It's SET not infile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want;
Set SASHELP.class;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You also need a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Libname lib1 '\\sflc-pod-...\wholesale_master';

Data wpm1;
Set lib1.wm_mp1;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 13:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361586#M23765</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-25T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361587#M23766</link>
      <description>&lt;P&gt;It's SET not infile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want;
Set SASHELP.class;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You also need a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Libname lib1 '\\sflc-pod-...\wholesale_master';

Data wpm1;
Set lib1.wm_mp1;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 13:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361587#M23766</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-25T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361599#M23767</link>
      <description>I tried the libname statement and then but it doesn't allow for the&lt;BR /&gt;wildcard in the dataset name. ie wholesale_master_*&lt;BR /&gt;&lt;BR /&gt;-Erin</description>
      <pubDate>Thu, 25 May 2017 13:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361599#M23767</guid>
      <dc:creator>ErinKSimmons</dc:creator>
      <dc:date>2017-05-25T13:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361601#M23768</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set lib.wholesale_master_:;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 13:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361601#M23768</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-25T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361607#M23769</link>
      <description>&lt;P&gt;You can't use the wildcard as easily if your datasets are in different folders. But you can assign a library to multiple folders and then try the colon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfiles ('path to lib1' 'path to lib2' 'path to lib3');

data want;
set myfiles.wholesale_master: ;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 14:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361607#M23769</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-25T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Wildcard to define filename, but no variables loading on infile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361640#M23770</link>
      <description>&lt;P&gt;Kurt-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, this also worked as it was part of the other one marked as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Erin&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Wildcard-to-define-filename-but-no-variables-loading-on/m-p/361640#M23770</guid>
      <dc:creator>ErinKSimmons</dc:creator>
      <dc:date>2017-05-25T15:03:00Z</dc:date>
    </item>
  </channel>
</rss>

