Compiling from Program Definition
Program Definition informs the precompiler which program segments to collect for compilation. You can submit programs for individual compilation or you can compile all the programs in a system at one time. When you compile an entire system, the compiler first compiles the form rules file for the selected system and the object rules files for the selected product line. You can compile form rules and object rules without compiling the entire system.
The Compile System utility (cobcmp) compiles all COBOL programs in a system code or product line. The form and object rules for the product line and system code compile unless a specific option is chosen.
The Compile Program utility (qcompile) compiles a selected COBOL program. It does not compile the form or object rules files for the product line.
If you attempt to compile a library that contains COBOL code that does not follow Lawson standards, qcompile will not compile the library. In order to compile this library you must create a configuration file, NONSTDLIB.cfg, that identifies this library as nonstandard.
If NONSTDLIB.cfg exists, qcompile skips the defined library in the compile process. The defined nonstandard library is processed as text. qcompile does not support any repository references.
The Compile Form and Object Rules utility (srgen) compiles the form rules files and the object rules files in a product line. You do not have to define both a form rules file and an object rules file for an application system to run srgen.
For more information on form and object rules, see Application Development Workbench Standards.