Does anybody know the compiler options required to create a .obj file from a COBOL program. I ask as I need to create a COBOL routine that can be called by C.
CODE
\COBOL\BINB\COBOL %1.CBL,%1.OBJ,%1.LST,;
@ECHO OFF
IF ERRORLEVEL 1 GOTO COBOL-FAILURE
REM CBLLINK %1.OBJ *> Used in CX.BAT 32 bit
REM CBLLINK -S -D %1.OBJ *> Used in C.BAT 32 bit
\COBOL\BINB\LINK %1.OBJ+EXTFH /ST:4096 /SE:512,%1.EXE;
IF ERRORLEVEL 1 GOTO LINK-FAILURE
GOTO SUCCESSFUL
\CODE
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.