To compile and link user code for the Scheduler, Microsoft Visual C++ Version 6.0 Service Pack 3 or later is required. If you did not install Microsoft Visual C++ with the option to set up for use from a command prompt, your PATH, LIB, and INCLUDE environment variables may not be set correctly. To set these variables, you can run VCVARS32.BAT, which is located in the \bin subdirectory of your Visual C++ installation.
NOTE: See Writing a Custom Scheduler Rule for a summary of the steps required to create custom rules.
To compile and link your custom Scheduler rules, follow these steps:
$ cd USERCODE $ mkdir mydb $ cd mydb $ copy ..\MAKEFILE $ copy ..\USER.DEF
OBJFILES = file1.obj file2.obj file3.obj
Case does not matter. In most cases, you will not need to change anything else in this file. However, there are additional variables you can use for custom compile or link options or for additional libraries to be linked into the program.
When scheduling custom events, you must add function declaration lines to the .DEF file that is used by the linker. For more details, see the documentation on function uccsched in the Simulation Tailoring Support Function Reference, available from the support site, on the documentation page for the Infor APS Virtual Planning/Simulation product). Instead of copying and editing the AIM_SUSR.DEF file as documented there, you must make your edits to the USER.DEF file that you copied in step 1. Go to the end of the USER.DEF file and add a line consisting of the name of your custom event function. The case should match the case of the name as it appears in the .C file. Repeat this step for each custom event function.
$ cd USERCODE\mydb $ nmake
Custom Planner Rule, Current Operations
Writing Custom Resource Allocation Rules