DADiSP Worksheet Functions > Function Categories > Series Processing Language (SPL) > SPLCOMPILE

 

SPLCOMPILE

Purpose:

Compiles an SPL function file into an OPL file.

Syntax:

SPLCOMPILE(

"filename", overwrite, expand, load, verbose)

"filename"

-

String. The filename of the SPL file. Function form.

overwrite

-

Optional. An integer, replace macro flag.

 

0:

do not replace macro of same name

 

1:

replace macro of same name (default)

expand

-

Optional. An integer, include source code.

 

0:

do not include source in OPL file (default)

 

1:

include source

load

-

Optional. An integer, load flag.

 

0:

do not load function into memory (default)

 

1:

load function into memory

verbose

-

Optional. An integer, message flag.

 

0:

do not provide error messages

 

1:

display compile errors (default)

Command Syntax:

 

SPLCOMPILE filename

 

filename    -   The filename of the SPL file, without quotes. Command form.

Example:

splcompile("myfuncs.spl")

 

compiles myfuncs.spl, and creates the file, myfuncs.opl. The OPL file does not include the source code and is not loaded into memory.

Example:

splcompile myfuncs.spl

 

same as above. The command form is easier to type when using the command line.

Remarks:

SPLCOMPILE only creates OPL files. By default, it does not read the functions into the Worksheet. Any errors found during compile are written to the ASCII text file, filename.err.

 

The command form does not accept optional arguments.

 

See SPLCOMPILEALL to compile one or more SPL files in a folder

See Also:

FUNCTIONS

SPLCOMPILEALL

SPLLOAD

SPLLOADALL

SPLREAD

SPLWRITE