<?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: Running JSL in background without any windows popping up in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276879#M53780</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;. I like how streamlined the code is using the multivariate feature instead of what I was trying to do with a complicated nested for loop. :(&lt;/img&gt; Much to learn! :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jul 2020 20:10:25 GMT</pubDate>
    <dc:creator>AmanS</dc:creator>
    <dc:date>2020-07-04T20:10:25Z</dc:date>
    <item>
      <title>Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276716#M53704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;New JSL user here. I have a nested for loop where I am using a bivariate platform to extract Rsq for each pair and creating a concatenated data table which will eventually hold all Rsq values for all pairs. I am able to get the desired output in the end. However, while the script is running, I get temp tables to pop up and I cannot seem to make them invisible or close (post contenation to another table).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to flip a switch and turn off any windows to pop up? If not, anyone have a suggestion how to not have the screen keep popping tables while running? Output of the script while running is in the attachment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script is below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= 5, i++,
For (j= 1, j &amp;lt;= 5, j++,
biv = dt &amp;lt;&amp;lt; Bivariate(
Y( ParmColumns[i] ),
X( ParmColumns[j] ),
Fit Line( {Line Color( {212, 73, 88} )} ),
Invisible

);
rbiv = biv &amp;lt;&amp;lt; Report;
tb = rbiv[Table Box( 1 )];
mcdt = tb &amp;lt;&amp;lt; Make Combined Data Table &amp;lt;&amp;lt; Show Window( 1 );
if (counter == 0 ,
combineddt = mcdt
);
if (counter &amp;gt; 0 ,
combineddt &amp;lt;&amp;lt; Concatenate(
mcdt,
"Append to first table"
);
);
counter ++;
rbiv &amp;lt;&amp;lt; Close Window;

mcdt &amp;lt;&amp;lt; Invisible;
combineddt &amp;lt;&amp;lt; Invisible;
wait(.1);
);

);

// Select and delete all rows that are empty
combineddt &amp;lt;&amp;lt; Select Where(:"Column 1" != "RSquare") &amp;lt;&amp;lt; Delete Rows;
combineddt &amp;lt;&amp;lt; Select Where(:X == :Y) &amp;lt;&amp;lt; Delete Rows;

//save stacked data table
combineddt &amp;lt;&amp;lt; Save (Output_File&amp;nbsp;);


// Close data table and do not save JMP tables. CSV files are already saved.
Close All( Data Tables, NoSave );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-07-02 at 4.51.53 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25059i9628A7B86DF2D400/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-07-02 at 4.51.53 PM.png" alt="Screen Shot 2020-07-02 at 4.51.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:15:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276716#M53704</guid>
      <dc:creator>AmanS</dc:creator>
      <dc:date>2023-06-10T23:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276721#M53708</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19537"&gt;@AmanS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You should look up "invisible"&amp;nbsp; for report wndows and invisible vs private for data tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
flag=random Integer(0,1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
if(flag==1,
         obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ), Invisible ),
       //else
		obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ) )
		
 ); //end if&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 22:57:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276721#M53708</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-07-02T22:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276773#M53731</link>
      <description>&lt;P&gt;You can learn much from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;'s solution. It is provides a general framework. In this specific case, though, I will use JMP interactively to get what I want. No explicit iteration is required as JMP &lt;EM&gt;almost&lt;/EM&gt; calculates the desired result for you. Just one extra step at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, I wrote a script to do it but the comments should provide the path to the result that you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

// open example with several continuous numeric variables
dt = Open( "$SAMPLE_DATA/Fitness.jmp" ) ;

// obtain names of such variables
cols = dt &amp;lt;&amp;lt; Get Column Names( Continuous );

// convert the names to references
cols = dt &amp;lt;&amp;lt; Get Column Reference( cols );

// use the references to launch platform with list of correlations
mult = dt &amp;lt;&amp;lt; Multivariate( Y( Eval( cols ) ), Pairwise Correlations );

// obtain new data table with correlations
dt = Report( mult )["Pairwise Correlations"][TableBox(1)] &amp;lt;&amp;lt; Make Into Data Table;

// convert correlations into linear coefficient of determination
dt &amp;lt;&amp;lt; New Column( "R Square", Numeric, Continuous,
	Values( (dt:Correlation &amp;lt;&amp;lt; Get As Matrix)^2 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jul 2020 11:12:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276773#M53731</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-07-03T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276778#M53736</link>
      <description>&lt;P&gt;Removing the wait(...) may be sufficient. That gives the OS time to show the window. Wait is usually not needed, or there is an alternative that doesn't need it, like &amp;lt;&amp;lt;runformulas. Sometimes you do need the window to show/update though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mcdt &amp;lt;&amp;lt; Invisible;&amp;nbsp;//&amp;nbsp;does&amp;nbsp;not&amp;nbsp;work&amp;nbsp;this&amp;nbsp;way&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp; showed the right way to use, you probably want to close the tables as soon as they are no longer needed. Change it to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;close(mcdt,"nosave");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd still leave out the wait(...) .&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 21:21:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276778#M53736</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-07-03T21:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276878#M53779</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate you taking the time to respond to this query :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 20:08:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276878#M53779</guid>
      <dc:creator>AmanS</dc:creator>
      <dc:date>2020-07-04T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running JSL in background without any windows popping up</title>
      <link>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276879#M53780</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;. I like how streamlined the code is using the multivariate feature instead of what I was trying to do with a complicated nested for loop. :(&lt;/img&gt; Much to learn! :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 20:10:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-JSL-in-background-without-any-windows-popping-up/m-p/276879#M53780</guid>
      <dc:creator>AmanS</dc:creator>
      <dc:date>2020-07-04T20:10:25Z</dc:date>
    </item>
  </channel>
</rss>

