<?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 behaviour vs. include in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76223#M16458</link>
    <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
"When I run the job via an %include from another job...' Does that mean you deploy the job and then in another job you're having a %include on the deployed job? If so: this wouldn't be the way you should do it in DI. Better use a loop control and embed the first job as inner object.&lt;BR /&gt;
&lt;BR /&gt;
You have to look at the code/log to see what's going wrong. One reason could be that you use the %include statement within a macro and so all macro vars created by the pre-processing step of the included job outside of a macro are "suddenly" defined inside of a macro - they would become local instead of global (and that's one of many reasons why you should do things the DI way before writing user written code).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Thu, 05 Mar 2009 08:39:45 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-03-05T08:39:45Z</dc:date>
    <item>
      <title>abort behaviour vs. include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76221#M16456</link>
      <description>Dear forum,&lt;BR /&gt;
&lt;BR /&gt;
I am facing an issue with DI Studio I cant find any documentation on.&lt;BR /&gt;
&lt;BR /&gt;
There is 1 job which has a Lookup (missing table-&amp;gt;abort) and a post-processing defined, which inserts a row into a "jobstatus" table containing the JOB_RC. &lt;BR /&gt;
&lt;BR /&gt;
When running the job normally, it aborts when in case the lookup table is missing and executes the post-processing code.&lt;BR /&gt;
&lt;BR /&gt;
When I run the job via an %include from another job, the lookup table is missing, the job aborts but does NOT run the post-processing code, thus not inserting the JOB_RC into my jobstatus table.&lt;BR /&gt;
&lt;BR /&gt;
Why is the behaviour different?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 04 Mar 2009 13:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76221#M16456</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2009-03-04T13:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: abort behaviour vs. include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76222#M16457</link>
      <description>Possibly the ERRORABEND / NOERRORABEND condition may be the cause for different behavior?  It would be best to share SAS log output with source code revealed for a proper diagnosis, after you have determined that the SAS behavior is different based on the two instances - check your PROC OPTIONS;  settings for differences, possibly.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 04 Mar 2009 18:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76222#M16457</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-04T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: abort behaviour vs. include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76223#M16458</link>
      <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
"When I run the job via an %include from another job...' Does that mean you deploy the job and then in another job you're having a %include on the deployed job? If so: this wouldn't be the way you should do it in DI. Better use a loop control and embed the first job as inner object.&lt;BR /&gt;
&lt;BR /&gt;
You have to look at the code/log to see what's going wrong. One reason could be that you use the %include statement within a macro and so all macro vars created by the pre-processing step of the included job outside of a macro are "suddenly" defined inside of a macro - they would become local instead of global (and that's one of many reasons why you should do things the DI way before writing user written code).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 05 Mar 2009 08:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/abort-behaviour-vs-include/m-p/76223#M16458</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-03-05T08:39:45Z</dc:date>
    </item>
  </channel>
</rss>

