Initializing help system before first use

# moselexec

Purpose
Compile and run a Mosel program.
Synopsis
`moselexec(srcfile)`
`moselexec(srcfile,parlist)`
`moselexec(srcfile,parlist,options)`
`retcode=moselexec(..)`
`[retcode, exitcode]=moselexec(..)`
Input arguments

srcfile | Name of the Mosel source file to run, can be any Mosel generalized file
parlist | String composed of model parameter initializations separated by commas
options | Mosel compilation options

Output arguments

retcode | Compilation and execution result code
<0 | compilation failed
0 | program executed successfully
>0 | an error occured during model execution
exitcode | Exit status returned by the Mosel program

Further information
1. Compilation options are documented in the Mosel Language Reference Manual.
2. If the output argument retcode is omitted and execution is not successful (that is, retcode is non-zero), then its value is printed with a warning message (to disable this message, just add the output argument in the call).
Parent Topic Xpress MATLAB functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.