<?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: automated job in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240589#M55624</link>
    <description>&lt;P&gt;Here is a link that has some code example for sending emails with attachments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1hl3t66coao7bn18vrmhx2gte1q.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1hl3t66coao7bn18vrmhx2gte1q.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should talk to your SAS administrator to confirm your site's email settings if any.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2015 02:51:40 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-12-23T02:51:40Z</dc:date>
    <item>
      <title>automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240511#M55610</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;is it possible to create a batch in SAS that picks up a&amp;nbsp;file from a&amp;nbsp; particular UNIX location and&amp;nbsp;emails&amp;nbsp; it to&amp;nbsp;myself for example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont have certain dates when that file will be in UNIX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pls advise&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240511#M55610</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2015-12-22T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240514#M55611</link>
      <description>Yes, it's possible.  You'll have to schedule the script to run and check if the file exists, if it exists then do A, otherwise stop.  There are code samples on here if you search.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240514#M55611</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-22T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240515#M55612</link>
      <description>&lt;P&gt;Yes. Assuming that SAS is running on the Unix server and that it&amp;nbsp;is configured to work with an email server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you want to use email? What happens if the file is too large to send as an email attachment? Most email systems have restrictions on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also there are schedulers that can check&amp;nbsp;for the existence of a file and then run a batch job.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240515#M55612</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-12-22T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240526#M55618</link>
      <description>&lt;P&gt;thanks guys,&lt;/P&gt;
&lt;P&gt;I usually pick up the file from our server manually and load it to another server which is not owned by us but now the guys asked me&amp;nbsp; if i can&amp;nbsp; pick it up &amp;nbsp;and email it to them directly instead of loading it to their server.&lt;/P&gt;
&lt;P&gt;Can you please point where on here i can get the samples&amp;nbsp; of those scripts or even the scheduler that check for existence?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 20:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240526#M55618</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2015-12-22T20:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240527#M55619</link>
      <description>Does it have to be a SAS script, there are a lot more Unix scripts out there I would imagine, and it's probably more efficient.</description>
      <pubDate>Tue, 22 Dec 2015 20:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240527#M55619</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-22T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240531#M55621</link>
      <description>&lt;P&gt;i dont know how to&amp;nbsp; write scripts in UNIX&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 20:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240531#M55621</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2015-12-22T20:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240589#M55624</link>
      <description>&lt;P&gt;Here is a link that has some code example for sending emails with attachments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1hl3t66coao7bn18vrmhx2gte1q.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/67929/HTML/default/viewer.htm#p1hl3t66coao7bn18vrmhx2gte1q.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should talk to your SAS administrator to confirm your site's email settings if any.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 02:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240589#M55624</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-12-23T02:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240700#M55627</link>
      <description>&lt;P&gt;thanks SaSKiwi,&lt;/P&gt;
&lt;P&gt;i did try one of the codes&amp;nbsp; from the link&amp;nbsp; you sent me and looks like my SAS is not set up to talk to SMTP yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you also point to some codes that check to see if a&amp;nbsp; file exists in&amp;nbsp; a particular server&amp;nbsp; and then&amp;nbsp;picks it up&amp;nbsp;before sending&amp;nbsp;it via email?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 20:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240700#M55627</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2015-12-23T20:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: automated job</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240702#M55628</link>
      <description>Use the Fexist or FileExist functions.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000210912.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000210912.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The example is pretty much what you want, except you want more stuff to happen in the IF/THEN sections. You may have to use different parts from different questions but the solutions are on here.</description>
      <pubDate>Wed, 23 Dec 2015 20:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/automated-job/m-p/240702#M55628</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-23T20:49:00Z</dc:date>
    </item>
  </channel>
</rss>

