<?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 JSL script to run multiple nested JSL scripts issue in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-script-to-run-multiple-nested-JSL-scripts-issue/m-p/403599#M65418</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a checkbox gui setup with JMP applications that lets the user select which analysis to run, this feature lets users select/run multiple analysis at the same time essentially. (i.e. one button to run all)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each individual script works when run stand-alone, but when calling/running them all from a singular script, issues arise. I cannot edit each individual analysis jsl script due to they are used elsewhere in the gui and may break. Plus there's like 20 scripts...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the script I have now, it runs for some, but for others it's throwing errors that I believe are due to shared table names within each analysis script.&lt;/P&gt;&lt;P&gt;Is there a way to run multiple jsl scripts as separate entities as if they are run as stand-alone, so if table names/variables are the same it won't cause errors? Each analysis script runs individually, so there should not be any data shared between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if (checkbox &amp;lt;&amp;lt; get (1),
	Include(get default directory() || "analysis_1.jsl", Run JSL( 1 )),
);
if (checkbox &amp;lt;&amp;lt; get (2),
	Include(get default directory() || "analysis_2.jsl", Run JSL( 1 )),
);&lt;BR /&gt;if (checkbox &amp;lt;&amp;lt; get (3),
	Include(get default directory() || "analysis_3.jsl", Run JSL( 1 )),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've tried looking through the discussion boards, but haven't been able to find anything in regards to my issue. Everything seems to share data between all the scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;(fyi, JMP 15.2.0)&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:53:12 GMT</pubDate>
    <dc:creator>Glo_Roh</dc:creator>
    <dc:date>2023-06-09T19:53:12Z</dc:date>
    <item>
      <title>JSL script to run multiple nested JSL scripts issue</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-to-run-multiple-nested-JSL-scripts-issue/m-p/403599#M65418</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a checkbox gui setup with JMP applications that lets the user select which analysis to run, this feature lets users select/run multiple analysis at the same time essentially. (i.e. one button to run all)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each individual script works when run stand-alone, but when calling/running them all from a singular script, issues arise. I cannot edit each individual analysis jsl script due to they are used elsewhere in the gui and may break. Plus there's like 20 scripts...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the script I have now, it runs for some, but for others it's throwing errors that I believe are due to shared table names within each analysis script.&lt;/P&gt;&lt;P&gt;Is there a way to run multiple jsl scripts as separate entities as if they are run as stand-alone, so if table names/variables are the same it won't cause errors? Each analysis script runs individually, so there should not be any data shared between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if (checkbox &amp;lt;&amp;lt; get (1),
	Include(get default directory() || "analysis_1.jsl", Run JSL( 1 )),
);
if (checkbox &amp;lt;&amp;lt; get (2),
	Include(get default directory() || "analysis_2.jsl", Run JSL( 1 )),
);&lt;BR /&gt;if (checkbox &amp;lt;&amp;lt; get (3),
	Include(get default directory() || "analysis_3.jsl", Run JSL( 1 )),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've tried looking through the discussion boards, but haven't been able to find anything in regards to my issue. Everything seems to share data between all the scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;(fyi, JMP 15.2.0)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:53:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-to-run-multiple-nested-JSL-scripts-issue/m-p/403599#M65418</guid>
      <dc:creator>Glo_Roh</dc:creator>
      <dc:date>2023-06-09T19:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script to run multiple nested JSL scripts issue</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-to-run-multiple-nested-JSL-scripts-issue/m-p/403626#M65420</link>
      <description>&lt;P&gt;see if this does what you need; In the example, if you run it twice, it makes two independent windows rather than two that interfere with each other. Also, I'm not sure what RunJSL(1) does in the include() function...I think it is ignored.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="include( ... , &amp;lt;&amp;lt;new context )" style="width: 951px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34494iACAEB1B9F5CBDC89/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewContext.PNG" alt="include( ... , &amp;lt;&amp;lt;new context )" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;include( ... , &amp;lt;&amp;lt;new context )&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 00:14:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-to-run-multiple-nested-JSL-scripts-issue/m-p/403626#M65420</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-07-24T00:14:15Z</dc:date>
    </item>
  </channel>
</rss>

