- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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")