cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
jslbeginner
Level I

Can you call a script from inside another script?

I have 10 individual scripts that operate on 10 different tables.

I want to write a master script that opens each table, and calls the script that should operate on that table, and then saves the resulting table.

At the end it will join all the resulting tables.

Is this possible to do?

I can not figure out how to call the script from within another script.

Thanks much for any help, I am just starting out.

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: Can you call a script from inside another script?

You can either use functions or the include statement.  Functions are described in the JSL manual.

Here's a simple example that uses the include statement:

// My main program

dt1 = open();

dt2 = open();

include("myprogram1.jsl");

include("myprogram2.jsl")

View solution in original post

1 REPLY 1
pmroz
Super User

Re: Can you call a script from inside another script?

You can either use functions or the include statement.  Functions are described in the JSL manual.

Here's a simple example that uses the include statement:

// My main program

dt1 = open();

dt2 = open();

include("myprogram1.jsl");

include("myprogram2.jsl")