Building files for Mosel
Data files generated for Mosel models must observe the same structure as the usual ascii Mosel format. For instance, consider the following data file in its ascii form:
a:123 b:[(1) 10]
The corresponding data stored in the binary format can be obtained with the following code:
bindrv_putctrl(bctx,BINDRV_CTRL_LABEL); bindrv_putstring(bctx,"a"); bindrv_putint(bctx,123); bindrv_putctrl(bctx,BINDRV_CTRL_LABEL); bindrv_putstring(bctx,"b"); bindrv_putctrl(bctx,BINDRV_CTRL_OPENLST); bindrv_putctrl(bctx,BINDRV_CTRL_OPENNDX); bindrv_putint(bctx,1); bindrv_putctrl(bctx,BINDRV_CTRL_CLOSENDX); bindrv_putint(bctx,10); bindrv_putctrl(bctx,BINDRV_CTRL_CLOSELST);
Note the use of control tokens to structure the data stream: a dedicated control code corresponds to each of the special characters in the ascii format. For example, the symbol '[' in the ascii format is represented by the code BINDRV_CTRL_OPENLST in the binary format.
© 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.