<?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: SAS DI: fork trf in job does not work when job is scheduled in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/536431#M16549</link>
    <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for your input, highly appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, we know that the forks don't work since we don't see any entries in target table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, we had similar thoughts on the Wait for completion transformation and added this trf to the load job, but no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So … still struggling. Keep you posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers Marcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 11:15:25 GMT</pubDate>
    <dc:creator>mvanmun</dc:creator>
    <dc:date>2019-02-18T11:15:25Z</dc:date>
    <item>
      <title>SAS DI: fork trf in job does not work when job is scheduled</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535140#M16520</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we use fork transformations in load jobs to enable parallel processing. These jobs work fine when we start the job in DI. All forks are executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However after scheduling the jobs in MC only the first fork is processed or nothing is processed at all. Moreover, the load jobs don't fail, but end "successfully"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have no clue what we are doing wrong. Is there some kind of setting we missed? Any advice is more than welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System info&lt;/P&gt;&lt;P&gt;=================&lt;/P&gt;&lt;P&gt;DI version: 4.902&lt;/P&gt;&lt;P&gt;Meta data server: 9440&lt;/P&gt;&lt;P&gt;OS: Win 7.6.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 10:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535140#M16520</guid>
      <dc:creator>mvanmun</dc:creator>
      <dc:date>2019-02-13T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI: fork trf in job does not work when job is scheduled</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535413#M16527</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184147"&gt;@mvanmun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you know that the forks haven't been executed?&lt;/P&gt;
&lt;P&gt;Reason I'm asking: I've been diving lately in detail into the loop transformation generated code (the fork generated code is very similar). At least in the loop transformation the status of "Finished" for the loop is based on the return code of the inner job.&lt;/P&gt;
&lt;P&gt;For the outer job to finish successfully: If run in parallel (so same as the Fork does) then the outer job would end with errors in case the signon or rsubmit doesn't succeed. The generated code from the Fork is to my knowledge identical in these parts.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 20:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535413#M16527</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-13T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI: fork trf in job does not work when job is scheduled</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535416#M16528</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184147"&gt;@mvanmun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just had another idea what could be happening here.&lt;/P&gt;
&lt;P&gt;The forked process runs as a asynchronous child process. Once started control is given back immediately to the parent process (your DIS job). Make sure to also use transformation "Wait for completion" and to connect all forked processes to such a transformation. This will ensure that the parent process is waiting at this point for the child processes to finish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what could be happening: You're not using the "Wait for completion" transformation. Child processes get started and then the main process continues running to the end without ever waiting for the children to finish. Running out of DIS you've got an ongoing session established (the parent) so the children can still finish. In batch the parent session will end once it's done all of its execution. If it doesn't wait for the children to end then I guess any child process not yet finished will get killed when the parent process ends.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm only making an educated guess here but this would explain what you observe and why the results are different when run out of DIS as compared to run in batch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 21:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/535416#M16528</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-13T21:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI: fork trf in job does not work when job is scheduled</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/536431#M16549</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for your input, highly appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, we know that the forks don't work since we don't see any entries in target table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, we had similar thoughts on the Wait for completion transformation and added this trf to the load job, but no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So … still struggling. Keep you posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers Marcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 11:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/536431#M16549</guid>
      <dc:creator>mvanmun</dc:creator>
      <dc:date>2019-02-18T11:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI: fork trf in job does not work when job is scheduled</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/536542#M16558</link>
      <description>&lt;P&gt;"&lt;EM&gt;we know that the forks don't work since we don't see any entries in target table&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;I'd analyze the SAS Log. May be search for the locations where Signon and Rsubmit get executed. If the Fork doesn't do something different from the Loop here then an unsuccessful Signon or Rsubmit should lead to your job to end with errors.&lt;/P&gt;
&lt;P&gt;If the Signon/Rsubmit succeed the you should also get somewhere a SAS log with the handle name as part of the log name and you could inspect this log to better understand what's not working.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 18:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-fork-trf-in-job-does-not-work-when-job-is-scheduled/m-p/536542#M16558</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-18T18:44:40Z</dc:date>
    </item>
  </channel>
</rss>

