<?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: How to create a SAS dataset with information from txt files in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405307#M26048</link>
    <description>&lt;P&gt;There's a good example of using FINFO to retrieve these attributes -- &lt;A href="http://support.sas.com/kb/40/934.html" target="_self"&gt;it's in this SAS Note&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 18:22:47 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2017-10-18T18:22:47Z</dc:date>
    <item>
      <title>How to create a SAS dataset with information from txt files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405294#M26043</link>
      <description>&lt;P&gt;I have 3 .txt files and need create a SAS dataset with :&lt;BR /&gt;- a variable with datetime of the creating this files&lt;BR /&gt;- a variable with filename&lt;BR /&gt;- a variable with filesize&lt;BR /&gt;How can I do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;I have 3 files called : claims.txt, sales.txt and product.txt&lt;/P&gt;&lt;P&gt;I need a SAS dataset called CONTROL like this :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Size&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Datetime&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Claims&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;446.335&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/19/2017 15:34:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;357.051&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/19/2017 15:34:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Products&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;9.909.169&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/19/2017 15:34:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Claims&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;447.698&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/20/2017 16:00:01&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;357.063&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/20/2017 16:00:01&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This informations are about when the files were created and copied in the folder&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 17:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405294#M26043</guid>
      <dc:creator>Valesca_1012</dc:creator>
      <dc:date>2017-10-18T17:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a SAS dataset with information from txt files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405306#M26047</link>
      <description>&lt;P&gt;Look in the Base SAS Functions help information, the category of "External Files". SAS has functions that will let you retrieve all of this information, with examples in the help text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405306#M26047</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-10-18T18:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a SAS dataset with information from txt files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405307#M26048</link>
      <description>&lt;P&gt;There's a good example of using FINFO to retrieve these attributes -- &lt;A href="http://support.sas.com/kb/40/934.html" target="_self"&gt;it's in this SAS Note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405307#M26048</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-18T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a SAS dataset with information from txt files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405316#M26054</link>
      <description>&lt;P&gt;And another option, which is the same as the suggestion yesterday, but here's an example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/QA-Data-Set/m-p/404961" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/QA-Data-Set/m-p/404961&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data meta;
    /*Source table mentioned already*/
    set sashelp.vtable;

    /*this limits the data sets in the list, you can remove it*/
    where memname in ('AIR', 'CARS', 'SHOES', 'BASEBALL', 'CLASS', 'FISH');

    /*variables your interested in keeping:
    data set name, created date, modificaiton date and filesize*/
    KEEP MEMNAME CRDATE MODDATE FILESIZE;
RUN;

*Display results;

Proc print data=meta;
run;a&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-a-SAS-dataset-with-information-from-txt-files/m-p/405316#M26054</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-18T18:56:18Z</dc:date>
    </item>
  </channel>
</rss>

