Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Compiling the COBOL program under the BS2000 command line interface

In this example, the COBOL source program resides in the LMS library SRC.LIB, but the JCI-COPY elements in the POSIX directory /myjava/include.

Consequently the following commands are required for compilation:

/DECL-VAR SYSIOL-COBLIB,INIT='*POSIX(/myjava/include)',
SCOPE=*TASK
/START-COBOL2-COMP SO=*LIB(SRC.LIB,HELLO.COB),
SOURCE-PROPERTIES=*PAR(ST-DEV=*YES),
COMPILER-ACTION=*MOD-GEN(MOD-FORM=*LLM),
MODULE-OUTPUT=*LIB(MOD.LIB,HELLO),
RUNTIME-OPTIONS=*PARAMETERS(ENABLE-UFS-ACCESS=*YES)