<?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 Importing text data from a 'Queue' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-text-data-from-a-Queue/m-p/115265#M259268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next project in SAS will involve setting up some scheduled jobs in DI studio to import some set format text files into SAS from a 'file queue' like setup.&lt;/P&gt;&lt;P&gt;The basic setup will need to be that SAS will&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;check a directory for new files&lt;/LI&gt;&lt;LI&gt;Import the new file whilst checking data etc.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Move the imported file to a 'Done' subdirectory if successful&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fairly confident with how the import and formatting process will need to work and setting up the jobs to run on a regular schedule or even monitor the folder for new files however i am not sure how to get SAS to move the physical text files around once they have been processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had to do this before or has an idea on what i would need to make this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps, the server that is running the code is Linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 13:52:10 GMT</pubDate>
    <dc:creator>TimCampbell</dc:creator>
    <dc:date>2013-01-04T13:52:10Z</dc:date>
    <item>
      <title>Importing text data from a 'Queue'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-text-data-from-a-Queue/m-p/115265#M259268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next project in SAS will involve setting up some scheduled jobs in DI studio to import some set format text files into SAS from a 'file queue' like setup.&lt;/P&gt;&lt;P&gt;The basic setup will need to be that SAS will&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;check a directory for new files&lt;/LI&gt;&lt;LI&gt;Import the new file whilst checking data etc.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Move the imported file to a 'Done' subdirectory if successful&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fairly confident with how the import and formatting process will need to work and setting up the jobs to run on a regular schedule or even monitor the folder for new files however i am not sure how to get SAS to move the physical text files around once they have been processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had to do this before or has an idea on what i would need to make this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps, the server that is running the code is Linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 13:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-text-data-from-a-Queue/m-p/115265#M259268</guid>
      <dc:creator>TimCampbell</dc:creator>
      <dc:date>2013-01-04T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Importing text data from a 'Queue'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-text-data-from-a-Queue/m-p/115266#M259269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check directory and file status using the DINFO and FINFO functions and related, see the online help for examples.&lt;/P&gt;&lt;P&gt;The X command in SAS sends sytem commands to the OS such as copying, deleting or moving files. Actually anything you can instruction you can do with a command line can be done with the X command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-text-data-from-a-Queue/m-p/115266#M259269</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-04T16:13:39Z</dc:date>
    </item>
  </channel>
</rss>

