<?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: Send output of one job as input to other in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93389#M976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could as Linus suggests have your audit job as outer job calling your second job as inner job. This way you could pass a macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your "audit job" will maintain some kind of control table. If yes then the way I've seen this done is to implement this as a user transformation. You then simply use this user transformation in your jobs (passing the job name as parameter with is the key to your control table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is what you intend to do: In order to avoid table locking issues with your control table make sure that you either run your jobs in sequence or that the control table is under SAS/Share or in a database where parallel read/write is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 02:10:21 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2013-09-26T02:10:21Z</dc:date>
    <item>
      <title>Send output of one job as input to other</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93386#M973</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;I am creating two DI ETL jobs.&lt;/P&gt;&lt;P&gt;My first job is audit job which will create process_date as macro variable which I will be passing as input to next extract job which would extract data based upon process date macro variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered situation like this? Need guidance in passing variable as input to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93386#M973</guid>
      <dc:creator>forumsguy</dc:creator>
      <dc:date>2013-09-25T16:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Send output of one job as input to other</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93387#M974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your process_date is a Global macro variable not sure there's an issue. Though I'd be careful with my naming and making sure it was a proper SAS date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include 'audit1.sas'; *Generates macro variable proces_date which has a scope of global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%second_audit(run_date=&amp;amp;process_date);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 17:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93387#M974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-25T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Send output of one job as input to other</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93388#M975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not common that DI jobs are tied together by a self written SAS "script" using %includes.&lt;/P&gt;&lt;P&gt;A design question, audit job, is the creation of a macro variable the only task? Will this be repeated to be used as input to other extract jobs?&lt;/P&gt;&lt;P&gt;If not, I suggest that you merge the two jobs into one.&lt;/P&gt;&lt;P&gt;Another DI way is try to have the audit job as an outer job, and you try to pass the macro variable as a parameter to the extract job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 20:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93388#M975</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-25T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send output of one job as input to other</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93389#M976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could as Linus suggests have your audit job as outer job calling your second job as inner job. This way you could pass a macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your "audit job" will maintain some kind of control table. If yes then the way I've seen this done is to implement this as a user transformation. You then simply use this user transformation in your jobs (passing the job name as parameter with is the key to your control table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is what you intend to do: In order to avoid table locking issues with your control table make sure that you either run your jobs in sequence or that the control table is under SAS/Share or in a database where parallel read/write is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 02:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Send-output-of-one-job-as-input-to-other/m-p/93389#M976</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-09-26T02:10:21Z</dc:date>
    </item>
  </channel>
</rss>

