Initializing help system before first use

tmp: accessing the temporary directory of Mosel

The driver tmp is an extension to the default driver that locates the specified file in the temporary directory used by Mosel. For example, we might wish to compile a submodel file to a BIM file located in the temporary directory:

if compile("", "burglar.mos", "tmp:burglar.bim")<>0 then exit(1); end-if
load(modBurg, "tmp:burglar.bim")     ! Load the BIM file 

The same can be achieved with the following library commands (Mosel C libraries):

XPRMcompmod(NULL, "burglar.mos", "tmp:burglar.bim", "Burglar example");
mod = XPRMloadmod("tmp:burglar.bim",NULL);     /* Load the BIM file */

The tmp driver can also be used with the library interfaces to other programming languages, such as the Mosel Java library:

  mosel.compile("", "burglar2.mos", "tmp:burglar2.bim", "");
  mod = mosel.loadModel("tmp:burglar2.bim");

Mosel's temporary directory is located in the system temporary directory, its actual definition depends on the system that is used for running Mosel and can be retrieved via the Mosel function getparam.

writeln("Temporary directory: ", getparam("tmpdir") )

© 2001-2019 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.