<?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 a JSL script within another JSL script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41805#M24382</link>
    <description>&lt;P&gt;Try the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/includes.shtml" target="_self"&gt;Include()&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 13:53:55 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2020-08-10T13:53:55Z</dc:date>
    <item>
      <title>Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41804#M24381</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I hope this one is easy, but I'm having difficulties figuring it out (new JSL user)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a "large" JSL script, of which within it, I want to run a "short" JSL script. &amp;nbsp; However, I do not want to put the code of the shorter script within the larger one since the same code is used within several of my scripts (its a database query builder).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to simply run the shorter script (it's on my drive: &amp;nbsp;Q:\Tissue Effect Research\JMP\JMP Apps and Scripts - Read Only\Data Puller) from the larger one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Jim&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:33:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41804#M24381</guid>
      <dc:creator>jim_pappas</dc:creator>
      <dc:date>2017-07-11T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41805#M24382</link>
      <description>&lt;P&gt;Try the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/includes.shtml" target="_self"&gt;Include()&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:53:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41805#M24382</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-08-10T13:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41814#M24388</link>
      <description>Perfect - that works....thanks!</description>
      <pubDate>Tue, 11 Jul 2017 21:11:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41814#M24388</guid>
      <dc:creator>jim_pappas</dc:creator>
      <dc:date>2017-07-11T21:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41817#M24391</link>
      <description>Jim,&lt;BR /&gt;I Strongly suggest that you read the Scripting Guide. &lt;BR /&gt;     Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;BR /&gt;It will give you the base of the structure of JSL, and give you a real leg up on knowing what is available within JSL.  It will let you move much faster, rather than having to wait for someone in the Discussion Community to respond.</description>
      <pubDate>Tue, 11 Jul 2017 21:33:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41817#M24391</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-11T21:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41844#M24409</link>
      <description>&lt;P&gt;Include() is great for running code within another JSL script. &amp;nbsp;You should also look into defining your own functions, because then you can call them within your larger script with parameters. &amp;nbsp;User-defined functions are documented in Help &amp;gt; Books &amp;gt; Scripting Guide, on page 258 (version 12.2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a simple example function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;add3 = Function({a, b, c}, 
// Add up the three arguments
	tmp = a + b + c;

// The last statement will return the value of tmp to the caller
	tmp;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here are some sample calls to this newly defined function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = add3(1, 5, 9);

z = add3(3.14159, 2.7183, 6.721);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 12:17:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41844#M24409</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-07-12T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/63301#M33971</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I met the same question and tried include() function. Could you teach me how to setup name for the data table from the script that I include?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the script I use now. It didn't work. I need a table name for future scripting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt_template = Current Data Table();&lt;/P&gt;&lt;P&gt;dt_template = include("A");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:46:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/63301#M33971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T13:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/305191#M56129</link>
      <description>&lt;P&gt;Merci :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;Vraiment, pour la question (qu'on doit être nombreux à se poser) et la réponse (qui peut parait simple aux experts mais qui pour les novices n'est pas évident à trouver dans le "scripting index")&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:43:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/305191#M56129</guid>
      <dc:creator>nath_baillet</dc:creator>
      <dc:date>2020-09-11T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/305250#M56134</link>
      <description>I understand your comment about the Scripting Index for the novice user.  For novice users, I do think the Scripting index is very helpful for looking at someone's JSL and when something is not understood, taking the function, etc. and then going to the Scripting Index, because one knows exactly what they are looking for.&lt;BR /&gt;On the other hand, what I do find extremely helpful for the Novice user, is the Scripting Guide.  It allows the new user to learn all about the structure of JSL.</description>
      <pubDate>Fri, 11 Sep 2020 15:55:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/305250#M56134</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-11T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597600#M80109</link>
      <description>&lt;P&gt;Hi, I tried to use the "include" function. But I can't manage to make it work.&lt;/P&gt;
&lt;P&gt;I have a table with a script called "Cleanup" and one "Run D6708 analysis" (see attachment).&lt;/P&gt;
&lt;P&gt;How can I call the script "Cleanup" within the script "Run D6708" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script.jpg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49873i7F5F574952751100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Script.jpg" alt="Script.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 21:27:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597600#M80109</guid>
      <dc:creator>LogitTurtle576</dc:creator>
      <dc:date>2023-02-06T21:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597601#M80110</link>
      <description>&lt;P&gt;Include is used when you want to run script from file (or include some functionality of it). To run table script you can use &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/data-table-messages.shtml?os=win&amp;amp;source=application#ww1547390" target="_blank" rel="noopener"&gt;&amp;lt;&amp;lt; Run Script&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Run Script("Distribution");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:46:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597601#M80110</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-02-06T15:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597853#M80143</link>
      <description>&lt;P&gt;Thanks for the solution&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 09:45:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/597853#M80143</guid>
      <dc:creator>LogitTurtle576</dc:creator>
      <dc:date>2023-02-07T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running a JSL script within another JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/598286#M80195</link>
      <description>&lt;P&gt;Can JSL use "go to"?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 03:00:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/598286#M80195</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-02-08T03:00:20Z</dc:date>
    </item>
  </channel>
</rss>

