Reference (include) a MaxL script from within another MaxL script. You might use this if variables are defined in the referenced MaxL script which are useful to the current MaxL script.
msh <scriptfile>;
login fiona sunflower;
alter database sample.basic end archive;
msh calculate.msh;
alter database sample.basic
begin archive to file bak;
logout;
Note: | Variables defined or changed in a nested script persist into the parent script after the nested script executes. |
Note: | Because msh is a shell command, it is limited to the originating session. Therefore, you should not reference MaxL scripts that contain new login statements. |