<?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 write code in JSL to call another JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72508#M35636</link>
    <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;In&amp;nbsp; AAA.jsl, how do&amp;nbsp; write code that calls another JSL to continue running: for example, this another JSL is&amp;nbsp; BBB.jsl with the same path&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When BBB. jsl finished, &lt;SPAN&gt;AAA. JSL continues to run the rest of the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks you!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 10:15:53 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2018-09-13T10:15:53Z</dc:date>
    <item>
      <title>How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72508#M35636</link>
      <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;In&amp;nbsp; AAA.jsl, how do&amp;nbsp; write code that calls another JSL to continue running: for example, this another JSL is&amp;nbsp; BBB.jsl with the same path&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When BBB. jsl finished, &lt;SPAN&gt;AAA. JSL continues to run the rest of the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:15:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72508#M35636</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-13T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72517#M35637</link>
      <description>&lt;P&gt;Use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Include();&lt;/P&gt;
&lt;P&gt;function.&lt;/P&gt;
&lt;P&gt;I strongly advise that you spend time and read the Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 11:56:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72517#M35637</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-13T11:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72530#M35649</link>
      <description>&lt;BR /&gt;This seems to work,&lt;BR /&gt;&lt;BR /&gt;where bbb. JSL only performs 2 files at a time, and moves the resulting file to another path in a timely manner, with code to clear the variable:&lt;BR /&gt;Include("d:\BBB.jsl");Wait(0);&lt;BR /&gt;Include("d:\BBB.jsl");Wait(0);&lt;BR /&gt;Include("d:\BBB.jsl");Wait(0);&lt;BR /&gt;Include("d:\BBB.jsl");Wait(0);&lt;BR /&gt;Include("d:\BBB.jsl");Wait(0);&lt;BR /&gt;……&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Clear Log(); Clear Globals(); Close All(DataTables,"No Save");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This reduces the number of automatic exits.</description>
      <pubDate>Thu, 13 Sep 2018 14:41:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72530#M35649</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-13T14:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72531#M35650</link>
      <description>&lt;BR /&gt;Please consult experts:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What else should you pay attention to in JSL, such as freeing memory and erasing variables?Thank you!&lt;BR /&gt;&lt;BR /&gt;Except the following:Clear Log(); Clear Globals(); Close All(DataTables,"No Save");</description>
      <pubDate>Thu, 13 Sep 2018 14:47:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72531#M35650</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-13T14:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72547#M35652</link>
      <description>Clear symbols();</description>
      <pubDate>Thu, 13 Sep 2018 16:02:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72547#M35652</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-13T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72629#M35666</link>
      <description>&lt;P&gt;Jim provided the correct answer, but this blog took another turn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend that you investigate scoping, specifically Names Default to Here() and New Context when working with Include();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without proper scoping, clear symbols() could lead to unwarranted behavior.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You likely do not need this, but as an FYI, Run Program() can be used to create a new instance of JMP and execute a script or commands, then return to your session.&amp;nbsp; There is no sharing of data or variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:02:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72629#M35666</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-09-13T20:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do write code in JSL to call another JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72641#M35668</link>
      <description>Well, Thanks for the way. I'll write them to BBB.jsl.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2018 22:41:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-write-code-in-JSL-to-call-another-JSL/m-p/72641#M35668</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-13T22:41:46Z</dc:date>
    </item>
  </channel>
</rss>

