<?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: waitfor after connect oracle in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394369#M66370</link>
    <description>&lt;P&gt;Run the Oracle update job separately from your Oracle read job. These could be two separate SAS batch jobs, or two separate EG sessions each running one of the jobs for example.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 22:25:33 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-09-08T22:25:33Z</dc:date>
    <item>
      <title>waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394075#M66345</link>
      <description>&lt;P&gt;Hello all;&lt;/P&gt;
&lt;P&gt;How to use waiting method wait for&amp;nbsp;the oracle task finish?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*---start from PC SAS;

%put this is pc sas;
&lt;BR /&gt;&lt;BR /&gt;*----the oracle connection will create oraclelib.two&lt;/PRE&gt;
&lt;PRE&gt;PROC SQL; CONNECT TO ORACLE AS ORA (USER="&amp;amp;user" PASSWORD="&amp;amp;pass" PATH = PA); EXECUTE (BEGIN CODE.CREATE_SASDATA.THREE('SASA',&amp;amp;sdate.,'Y'); END;); QUIT; &lt;BR /&gt;*----------need to wait here until last step finish,then can run the next data step;&lt;BR /&gt;&lt;BR /&gt; data after_oracle; &lt;BR /&gt;infile ORACLELIB.two; &lt;BR /&gt;input a $100;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 23:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394075#M66345</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-07T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394083#M66348</link>
      <description>&lt;P&gt;You don't need to do anything. SAS's default behaviour is to wait until the Oracle step has completed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you are reading an Oracle LIBNAME connection the correct syntax is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; data after_oracle; 
  set ORACLELIB.two;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394083#M66348</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-08T00:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394271#M66358</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More to the topic, how to do if I want the last data step runing &lt;U&gt;&lt;STRONG&gt;WITHOUT&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;waiting for oracle finish?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394271#M66358</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-08T16:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394369#M66370</link>
      <description>&lt;P&gt;Run the Oracle update job separately from your Oracle read job. These could be two separate SAS batch jobs, or two separate EG sessions each running one of the jobs for example.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 22:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394369#M66370</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-08T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394851#M66431</link>
      <description>&lt;P&gt;Is that possible to run these in same session? just add some SAS option ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 18:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/394851#M66431</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-11T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: waitfor after connect oracle</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/395299#M66456</link>
      <description>&lt;P&gt;Yes it is possible to do this but not with a SAS option. Running SAS jobs in parallel rather than one after the other is not straightforward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I think the best way of doing this is to use a SAS product called SAS/CONNECT. This software allows you to start multiple SAS sessions from within the one SAS job so you can run any task in parallel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have SAS/CONNECT you can start the parallel SAS sessions by using the X command: X 'SAS.EXE -sysin "Secondprog.sas" '; I wouldn't recommend this approach as it's pretty clunky and hard to get right. The SAS/CONNECT approach is way better.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 20:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/waitfor-after-connect-oracle/m-p/395299#M66456</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-12T20:45:22Z</dc:date>
    </item>
  </channel>
</rss>

