Subscribe Bookmark RSS Feed

Can you call a script from inside another script?

jslbeginner

Community Member

Joined:

Oct 25, 2013

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
Solution

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")

1 REPLY
Solution

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")