LOAD

Purpose:

Loads and executes a command file directly from a Worksheet.

Syntax:

LOAD("filename")

"filename"

-

A string. The command file to load.

Example:

load("mycfile.dsp")

 

loads and executes the command file MYCFILE.DSP.

Remarks:

The specified command file will be loaded into the current Worksheet. Be sure your command file is meant to run in an open Worksheet. Within a command file, use @CALL and @LOAD to CALL or LOAD other "sub" command files, in order to have control returned to the originating command file after the execution of the "sub" command file.

 

To create a conditional split in the original command file, use CALL or LOAD as they do not return to the command file in progress.

 

For example, in the originating command file, include a statement such as: if(length(W1)>600, load("x.dsp")). Then, if the series length is greater than 600, x.dsp is executed without returning to the original command file and the original command file can be written so as to deal only with cases where length(W1)<=600.

See Also:

CALL

RUN