<?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 Iterative run in DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126068#M1622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run a job automatically for 10 years in DI studio with out any manual intervention.&lt;/P&gt;&lt;P&gt;Following vars will be used as parameters to be passed 1)&amp;nbsp; &amp;amp;YEAR_BEG_DAY&amp;nbsp; 2) &amp;amp;YEAR_END_DAY derived from below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt; CALL SYMPUT("YEAR_BEG_DAY",put(INTNX("YEAR",Today(),-1,'B'),DATE9.));/*FIRST DAY OF THE YEAR*/&lt;/P&gt;&lt;P&gt; CALL SYMPUT("YEAR_END_DAY",put(INTNX("YEAR",Today(),-1,'E'),DATE9.));/*LAST DAY OF THE YEAR*/&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how this could be done in DI studio.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`ve 2 jobs actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Job 1 will fetch 1 year data truncate and load&amp;nbsp; Table 1&amp;nbsp; and&amp;nbsp; Job 2 will do some transformations and Load another FINAL table&amp;nbsp; (Append)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again this has to be repeated for another 9 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we actually do it in a single go and should this be better manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 14:48:21 GMT</pubDate>
    <dc:creator>tommy81</dc:creator>
    <dc:date>2013-07-03T14:48:21Z</dc:date>
    <item>
      <title>Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126068#M1622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run a job automatically for 10 years in DI studio with out any manual intervention.&lt;/P&gt;&lt;P&gt;Following vars will be used as parameters to be passed 1)&amp;nbsp; &amp;amp;YEAR_BEG_DAY&amp;nbsp; 2) &amp;amp;YEAR_END_DAY derived from below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt; CALL SYMPUT("YEAR_BEG_DAY",put(INTNX("YEAR",Today(),-1,'B'),DATE9.));/*FIRST DAY OF THE YEAR*/&lt;/P&gt;&lt;P&gt; CALL SYMPUT("YEAR_END_DAY",put(INTNX("YEAR",Today(),-1,'E'),DATE9.));/*LAST DAY OF THE YEAR*/&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how this could be done in DI studio.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`ve 2 jobs actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Job 1 will fetch 1 year data truncate and load&amp;nbsp; Table 1&amp;nbsp; and&amp;nbsp; Job 2 will do some transformations and Load another FINAL table&amp;nbsp; (Append)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again this has to be repeated for another 9 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we actually do it in a single go and should this be better manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 14:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126068#M1622</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2013-07-03T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126069#M1623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the Loop transformations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 14:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126069#M1623</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-07-03T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126070#M1624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS Data Integration Studio provides a &lt;A href="http://support.sas.com/documentation/cdl/en/etlug/65807/HTML/default/viewer.htm#p0vak6rd3mdyxhn100mrlh4jzg2b.htm"&gt;loop transformation&lt;/A&gt; that can help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a job for the "detail" work, add parameters to the job (using job properties) the parameter values will be available as Macro variables so they can be used anywhere&lt;/LI&gt;&lt;LI&gt;create the control job with the loop transformation that will provide the parameter values to the "detail" job&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126070#M1624</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2013-07-03T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126071#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats a great option.&lt;/P&gt;&lt;P&gt;Also just wanted to know if we could add a second job adjacent to the first one with out using the any of the loop parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126071#M1625</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2013-07-04T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126072#M1626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lop parameters are optional, if you don't map them, they are not used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126072#M1626</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-07-04T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126073#M1627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a Job either after the Loop End transformation or within the loop, see also picture below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3842_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If the job does not have any parameter it will do its work for each iteration of the loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 14:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126073#M1627</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2013-07-04T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126074#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanku very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 14:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126074#M1628</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2013-07-04T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative run in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126075#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the answers as "helpful" or "correct" this will help others too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 15:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Iterative-run-in-DI-Studio/m-p/126075#M1629</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2013-07-04T15:09:00Z</dc:date>
    </item>
  </channel>
</rss>

