发布日期: 11/15/2021

Includes

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.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).