<?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: Loop on SAS Data Integration Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411732#M12584</link>
    <description>Spontaneously I would say no, that's not how the loop transform works.&lt;BR /&gt;A dirty solurion is to wrap the steps in the inner job with a surronding macro with %do and %while/%until.&lt;BR /&gt;If you describe the logic how you assign the file_test we might can come up with a neater solution.</description>
    <pubDate>Wed, 08 Nov 2017 22:20:14 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-11-08T22:20:14Z</dc:date>
    <item>
      <title>Loop on SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411381#M12573</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;I have a problem. I want to do a LOOP on SAS Data Integration Studio and execute this Loop until the value in my table is equal 1.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16517iE49181E0CE329479/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;The user writer code generate a variable "file_test" in the table work.test&lt;/P&gt;&lt;P&gt;I want to make a LOOP with the LOOP transformation (no user writer code) to execute the loop until the value of "file_test" equal 0 and if the value of "file_test" = 1 then stop the LOOP.&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;The version of SAS DIS is 4.9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411381#M12573</guid>
      <dc:creator>Spiky123</dc:creator>
      <dc:date>2017-11-07T22:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411732#M12584</link>
      <description>Spontaneously I would say no, that's not how the loop transform works.&lt;BR /&gt;A dirty solurion is to wrap the steps in the inner job with a surronding macro with %do and %while/%until.&lt;BR /&gt;If you describe the logic how you assign the file_test we might can come up with a neater solution.</description>
      <pubDate>Wed, 08 Nov 2017 22:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411732#M12584</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-08T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411887#M12597</link>
      <description>&lt;P&gt;Hello LinusH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all thanks for your reply ! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The operation of the process is as follows:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The DIS job should run every 5 minutes by searching a directory for a specific file.&lt;BR /&gt;The macro loops as long as the file is not found. If the file is found, it stops.&lt;BR /&gt;How can I set up a condition in my program that runs the DIS job every 5 minutes to check for the presence of the file and does not run after the file is found?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can use the USER WRITER transformation, as you said the LOOP transformation doesn't work for this.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 12:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/411887#M12597</guid>
      <dc:creator>Spiky123</dc:creator>
      <dc:date>2017-11-09T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/412162#M12604</link>
      <description>This sounds more like a job for a scheduler or an external script. &lt;BR /&gt;DI Studio is mainly for dealing with data flows, not application logic.</description>
      <pubDate>Thu, 09 Nov 2017 21:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/412162#M12604</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-09T21:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/412308#M12607</link>
      <description>&lt;P&gt;Super !! you confirm all iwas thinking :)))&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 13:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Loop-on-SAS-Data-Integration-Studio/m-p/412308#M12607</guid>
      <dc:creator>Spiky123</dc:creator>
      <dc:date>2017-11-10T13:02:13Z</dc:date>
    </item>
  </channel>
</rss>

