The Include() function opens a script file, parses the script in it, and executes the JSL in the specified file.
Include( "pathname" );
For example,
Include( "$SAMPLE_SCRIPTS/myStartupScript.jsl" );
There is an option to obtain the parsed expression from the file, rather than evaluating the file.
Include( "pathname", <<Parse Only );
Another named option creates a namespace that the included script runs in. This namespace is an anonymous namespace and it is independent from the parent script’s namespace.
Include( "file.jsl", <<New Context );
See Advanced Scoping and Namespaces for information about using namespaces with your scripts.
Note the following about included files:
• JMP files aside from JSL cannot be used.
• Other recognized file types, such as image files, SAS data sets, and Microsoft Excel files cannot be used.
• Unrecognized file types are treated as a JSL file.
• Files with the .txt extension are treated as a JSL file. A text file that contains data can be included, however an error will appear since this is not valid JSL.