<?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 how do i rsubmit to specific grid nodes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/518862#M140463</link>
    <description>&lt;P&gt;i am trying to submit the same code to each of our grid nodes.&amp;nbsp; code runs cleanly and looks ok but the code I rsubmit runs on the same server as the local session and isn't going to another node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;heres what I have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options minoperator mprint mlogic symbolgen COMPRESS=YES; 
options  sascmd="!sascmd -dmr -noautoexec";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* find the day value for the stats */
data _null_;
	call symput('Run_Day',PUT(Day(Date()),z2.));
run;

/* loop through all nodes */
%do i = 1 %to 5;

	/* create 2 digit node identifier */
	data _null_; call symput('i2',PUT(&amp;amp;i.,z2.));run;

		/* server that we are going to submit code too */
		%let RemServ=server&amp;amp;i2.b.server.net;
		%let RemPort=57551;
		%let RemHst&amp;amp;i2.=&amp;amp;RemServ &amp;amp;RemPort;
		OPTIONS REMOTE=RemHst&amp;amp;i2.;

		signon RemHst&amp;amp;i2.;

			/* create the macro variable needed within the remote session */
			%syslput i2 = &amp;amp;i2.;
			%syslput Run_Day = &amp;amp;Run_Day.;

			/* submit code to specific node on grid, connectperst=no allows job to complete and close the session */
			rsubmit wait=no connectpersist=n log="/Logs/EG_Logs/SAR_&amp;amp;i2._&amp;amp;Run_Day..log";
				%put The process ID is &amp;amp;sysjobid running on Server &amp;amp;syshostname = server&amp;amp;i2.b;
				Data _NULL_;
					command=%str(%"sar -n DEV 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarndev_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp; sar -r 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarr_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp; sar -b 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarb_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp;%");
					call system(command);
				run;
			endrsubmit;

	%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Dec 2018 16:45:06 GMT</pubDate>
    <dc:creator>INOV8_Br1an_g</dc:creator>
    <dc:date>2018-12-05T16:45:06Z</dc:date>
    <item>
      <title>how do i rsubmit to specific grid nodes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/518862#M140463</link>
      <description>&lt;P&gt;i am trying to submit the same code to each of our grid nodes.&amp;nbsp; code runs cleanly and looks ok but the code I rsubmit runs on the same server as the local session and isn't going to another node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;heres what I have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options minoperator mprint mlogic symbolgen COMPRESS=YES; 
options  sascmd="!sascmd -dmr -noautoexec";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* find the day value for the stats */
data _null_;
	call symput('Run_Day',PUT(Day(Date()),z2.));
run;

/* loop through all nodes */
%do i = 1 %to 5;

	/* create 2 digit node identifier */
	data _null_; call symput('i2',PUT(&amp;amp;i.,z2.));run;

		/* server that we are going to submit code too */
		%let RemServ=server&amp;amp;i2.b.server.net;
		%let RemPort=57551;
		%let RemHst&amp;amp;i2.=&amp;amp;RemServ &amp;amp;RemPort;
		OPTIONS REMOTE=RemHst&amp;amp;i2.;

		signon RemHst&amp;amp;i2.;

			/* create the macro variable needed within the remote session */
			%syslput i2 = &amp;amp;i2.;
			%syslput Run_Day = &amp;amp;Run_Day.;

			/* submit code to specific node on grid, connectperst=no allows job to complete and close the session */
			rsubmit wait=no connectpersist=n log="/Logs/EG_Logs/SAR_&amp;amp;i2._&amp;amp;Run_Day..log";
				%put The process ID is &amp;amp;sysjobid running on Server &amp;amp;syshostname = server&amp;amp;i2.b;
				Data _NULL_;
					command=%str(%"sar -n DEV 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarndev_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp; sar -r 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarr_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp; sar -b 60 720 &amp;gt;&amp;gt; /Logs/EG_Logs/sarb_nd)&amp;amp;i2._d&amp;amp;Run_Day. %str(&amp;amp;%");
					call system(command);
				run;
			endrsubmit;

	%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Dec 2018 16:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/518862#M140463</guid>
      <dc:creator>INOV8_Br1an_g</dc:creator>
      <dc:date>2018-12-05T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rsubmit to specific grid nodes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/519815#M140869</link>
      <description>&lt;P&gt;&lt;SPAN class="xis-argOption"&gt;I think your SIGNON statement should be signon RemServ not RemHst&amp;amp;i2.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 01:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/519815#M140869</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-12-10T01:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rsubmit to specific grid nodes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/525101#M142864</link>
      <description>&lt;P&gt;hi thanks for your reply and apologies for the delay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried RemServ.&amp;nbsp; first iteration it runs cleanly but still doesn't submit to the expected node (on the test run it ran on node 6 rather than node1), next iteration errors out as it cant find a link to the remote session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-rsubmit-to-specific-grid-nodes/m-p/525101#M142864</guid>
      <dc:creator>INOV8_Br1an_g</dc:creator>
      <dc:date>2019-01-07T16:27:58Z</dc:date>
    </item>
  </channel>
</rss>

