<?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: Abort Job if file does not exist - DI Studio 4.6 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185390#M3785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.wuss.org/proceedings12/55.pdf" title="http://www.wuss.org/proceedings12/55.pdf"&gt;http://www.wuss.org/proceedings12/55.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 16:07:02 GMT</pubDate>
    <dc:creator>DavidCaliman</dc:creator>
    <dc:date>2014-06-05T16:07:02Z</dc:date>
    <item>
      <title>Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185385#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I abort a job in data integration studio using the following rule: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Check if exists a file on the sas server starting with /project/customer* &lt;/P&gt;&lt;P&gt;- Failing that, I need to abort the process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 16:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185385#M3780</guid>
      <dc:creator>DavidCaliman</dc:creator>
      <dc:date>2014-06-04T16:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185386#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on your global DI project requirements.&lt;BR /&gt;You clould make this part of the autoexec_usermods files or the script starting the associated app-server.&lt;BR /&gt;Is it only one job in your project you can do it with some user-coding in the transformation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 18:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185386#M3781</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-04T18:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185387#M3782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do it with user-coding transformation, does anyone have an example of how to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c= count(files(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;/project/customer*))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if c=0 then&lt;/P&gt;&lt;P&gt;abort(job);&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 19:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185387#M3782</guid>
      <dc:creator>DavidCaliman</dc:creator>
      <dc:date>2014-06-04T19:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185388#M3783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the SAS external file functions to query directory contents.&lt;/P&gt;&lt;P&gt;Based on the result, use the data step statement ABORT ABEND/RETURN.&lt;/P&gt;&lt;P&gt;This, as Jaap mentioned, could be done in a User Written code transform, or in a Job Pre-code, which is best depends on what you intend to do if there exists files in the directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 20:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185388#M3783</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-06-04T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185389#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you would do it with unix-scripting (usermods file in the appserver configuration) use the Unix manual,&lt;BR /&gt;for example a google-hit: &lt;A href="http://kenfallon.com/finding-if-one-or-more-files-exist-in-a-directory-using-bash/" title="http://kenfallon.com/finding-if-one-or-more-files-exist-in-a-directory-using-bash/"&gt;http://kenfallon.com/finding-if-one-or-more-files-exist-in-a-directory-using-bash/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you do it in your own SAS code,&amp;nbsp; see: &lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#n16mqkc664l18en1n8rrcvs7lb1m.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#n16mqkc664l18en1n8rrcvs7lb1m.htm"&gt;SAS(R) 9.4 Companion for UNIX Environments, Third Edition&lt;/A&gt; (dinfo) or&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#p07waj6hzyi6abn161kaaq8qh0m1.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#p07waj6hzyi6abn161kaaq8qh0m1.htm"&gt;SAS(R) 9.4 Companion for UNIX Environments, Third Edition&lt;/A&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#p0kx8teyh4sf3dn1ndpeh31labey.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/67285/HTML/default/viewer.htm#p0kx8teyh4sf3dn1ndpeh31labey.htm"&gt;Environments, Third Edition&lt;/A&gt; (fileexist)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact your platform admin for what is the best thing to do in this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 05:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185389#M3784</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-05T05:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Abort Job if file does not exist - DI Studio 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185390#M3785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.wuss.org/proceedings12/55.pdf" title="http://www.wuss.org/proceedings12/55.pdf"&gt;http://www.wuss.org/proceedings12/55.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 16:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Abort-Job-if-file-does-not-exist-DI-Studio-4-6/m-p/185390#M3785</guid>
      <dc:creator>DavidCaliman</dc:creator>
      <dc:date>2014-06-05T16:07:02Z</dc:date>
    </item>
  </channel>
</rss>

