<?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: How to include another script in current script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/528941#M75244</link>
    <description>&lt;P&gt;Thanks! Small typo: last comment should be " ... save script B"&amp;nbsp; :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 16:48:56 GMT</pubDate>
    <dc:creator>jj_jmp</dc:creator>
    <dc:date>2022-08-01T16:48:56Z</dc:date>
    <item>
      <title>How to include another script in current script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/63297#M33970</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two scripts A and B. Script A and B both use the same data table. And what script A can do is updating columns for the data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to open the data table, call script A, and then use the table from script A to do the future analysis. But my code doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a part of my script. I think the script A is called successfully,&amp;nbsp;but the script after include function can't work. It is my first-time use include function. Can someone help me with it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help a lot!&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("XXX");&lt;/P&gt;&lt;P&gt;dt_template &amp;lt;&amp;lt; New Column( "L",&lt;BR /&gt;Character,&lt;BR /&gt;Nominal,&lt;BR /&gt;Formula(&lt;BR /&gt;&lt;BR /&gt;),&lt;BR /&gt;eval formula&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:48:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/63297#M33970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to include another script in current script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/63307#M33973</link>
      <description>&lt;P&gt;@Anonymous,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You may use the Include() to achieve what you want. One suggestion I would offer is look at expressions as well. You can achieve better control over your code by making it as expressions. However, here is one way to&amp;nbsp; achieve what you want, this goes into "Wrapper.jsl"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log(); Clear Globals(); Close All(DataTables,"No Save"); 

dt = Open( "$SAMPLE_DATA/Air Traffic.jmp" );

Include("C:\Script A.jsl"); // put your custom file path where you save Script A 

Wait(0.2); // For demo purposes 

Include("C:\Script B.jsl"); // put your custom file path where you save Script A &lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 21:50:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/63307#M33973</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-07-18T21:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to include another script in current script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/528941#M75244</link>
      <description>&lt;P&gt;Thanks! Small typo: last comment should be " ... save script B"&amp;nbsp; :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:48:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-include-another-script-in-current-script/m-p/528941#M75244</guid>
      <dc:creator>jj_jmp</dc:creator>
      <dc:date>2022-08-01T16:48:56Z</dc:date>
    </item>
  </channel>
</rss>

