<?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: proc sql prallel processing unsing rsubmit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894209#M353227</link>
    <description>&lt;P&gt;Looks like your macro variables ID and PW are not defined in all SAS sessions. You can define them once in the parent session, then do this to push them to the other sessions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ID = MyID;
%let PW = MyPW;

signon task1;

%syslput _all_ / remote = task1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Sep 2023 02:34:05 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-09-14T02:34:05Z</dc:date>
    <item>
      <title>proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894024#M353187</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help with below coding.&lt;/P&gt;
&lt;P&gt;can we connect oracle server using rsubmit miltiple time for prallel processing. or is there any code enhancement required&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;*&amp;nbsp; Parallel Processing *;&lt;/DIV&gt;
&lt;DIV&gt;options sascmd="sas";&lt;/DIV&gt;
&lt;DIV&gt;*&amp;nbsp; Prosess 1 *;&lt;/DIV&gt;
&lt;DIV&gt;signon task1;&lt;/DIV&gt;
&lt;DIV&gt;rsubmit task1 wait=no;&lt;/DIV&gt;
&lt;DIV&gt;proc sql;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; connect to oracle (user="&amp;amp;id" orapw="&amp;amp;pw" path="@path" preserve_comments);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; create table aaa as&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; select * from connection to oracle&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; (SELECT * from abc);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; disconnect from oracle;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;endrsubmit;&lt;/DIV&gt;
&lt;DIV&gt;*&amp;nbsp; Prosess 2 *;&lt;/DIV&gt;
&lt;DIV&gt;signon task2;&lt;/DIV&gt;
&lt;DIV&gt;rsubmit task2 wait=no;&lt;/DIV&gt;
&lt;DIV&gt;proc sql;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; connect to oracle (user="&amp;amp;id" orapw="&amp;amp;pw" path="@path" preserve_comments);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; create table bbb as&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; select * from connection to oracle&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; (select * fro xyz);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; disconnect from oracle;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;endrsubmit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;*&amp;nbsp; Prosess 3 *;&lt;/DIV&gt;
&lt;DIV&gt;signon task3;&lt;/DIV&gt;
&lt;DIV&gt;rsubmit task3 wait=no;&lt;/DIV&gt;
&lt;DIV&gt;proc sql;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; connect to oracle (user="&amp;amp;id" orapw="&amp;amp;pw" path="@path" preserve_comments);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; create table ccc as&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; select * from connection to oracle&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; (select * from www );&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; disconnect from oracle;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;endrsubmit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;waitfor _all_;&lt;/DIV&gt;
&lt;DIV&gt;signoff _all_;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;help is appreciated.&lt;/DIV&gt;
&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Sep 2023 10:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894024#M353187</guid>
      <dc:creator>Asbon</dc:creator>
      <dc:date>2023-09-13T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894182#M353212</link>
      <description>&lt;P&gt;That looks about right. Have you tried it?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 22:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894182#M353212</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-13T22:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894185#M353213</link>
      <description>&lt;P&gt;Base SAS + SAS/CONNECT - A simple method to generate load on any number of licensed cores&lt;BR /&gt;Posted 04-08-2021 05:46 AM | by SimonWilliams&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Base-SAS-SAS-CONNECT-A-simple-method-to-generate-load-on-any/ta-p/732174" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Base-SAS-SAS-CONNECT-A-simple-method-to-generate-load-on-any/ta-p/732174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;But the below blog is MUCH easier to understand :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running SAS programs in parallel using SAS/CONNECT®&lt;/P&gt;
&lt;P&gt;By Leonid Batkhan on SAS Users January 13, 2021&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2021/01/13/running-sas-programs-in-parallel-using-sas-connect/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2021/01/13/running-sas-programs-in-parallel-using-sas-connect/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 22:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894185#M353213</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-13T22:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894193#M353217</link>
      <description>&lt;P&gt;That looks about right. Just be aware that the rsubmit blocks run in their own SAS session and though any work table you create is in WORK of the child session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1694648547109.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87958i78F72F1BC6492316/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1694648547109.png" alt="Patrick_0-1694648547109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to either load such a WORK table to the parent WORK or easier write it to a disk location that's also directly accessible by the parent session.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 23:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894193#M353217</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-09-13T23:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894202#M353223</link>
      <description>below is the error that i'm getting.&lt;BR /&gt;macro variables are not getting resolved. with in sql passthrough.&lt;BR /&gt;if it one rsubmit it's working fine. &lt;BR /&gt;&lt;BR /&gt;NOTE: Remote submit to TASK1 commencing.&lt;BR /&gt;1    proc sql;&lt;BR /&gt;2     connect to oracle (user="&amp;amp;id" orapw="&amp;amp;pw" path="@path"&lt;BR /&gt;2  ! preserve_comments);&lt;BR /&gt;WARNING: Apparent symbolic reference id not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference pw not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference id not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference pw not resolved.&lt;BR /&gt;ERROR: ORACLE connection error: ORA-01017: invalid username/password; logon&lt;BR /&gt;       denied.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of&lt;BR /&gt;      statements.</description>
      <pubDate>Thu, 14 Sep 2023 01:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894202#M353223</guid>
      <dc:creator>Asbon</dc:creator>
      <dc:date>2023-09-14T01:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894203#M353224</link>
      <description>below is the error that i'm getting.&lt;BR /&gt;macro variables are not getting resolved. with in sql passthrough.&lt;BR /&gt;if it one rsubmit it's working fine.&lt;BR /&gt;&lt;BR /&gt;NOTE: Remote submit to TASK1 commencing.&lt;BR /&gt;1 proc sql;&lt;BR /&gt;2 connect to oracle (user="&amp;amp;id" orapw="&amp;amp;pw" path="@path"&lt;BR /&gt;2 ! preserve_comments);&lt;BR /&gt;WARNING: Apparent symbolic reference id not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference pw not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference id not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference pw not resolved.&lt;BR /&gt;ERROR: ORACLE connection error: ORA-01017: invalid username/password; logon&lt;BR /&gt;denied.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of&lt;BR /&gt;statements.</description>
      <pubDate>Thu, 14 Sep 2023 01:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894203#M353224</guid>
      <dc:creator>Asbon</dc:creator>
      <dc:date>2023-09-14T01:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql prallel processing unsing rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894209#M353227</link>
      <description>&lt;P&gt;Looks like your macro variables ID and PW are not defined in all SAS sessions. You can define them once in the parent session, then do this to push them to the other sessions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ID = MyID;
%let PW = MyPW;

signon task1;

%syslput _all_ / remote = task1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2023 02:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-prallel-processing-unsing-rsubmit/m-p/894209#M353227</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-14T02:34:05Z</dc:date>
    </item>
  </channel>
</rss>

