Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating OBJ files with MicroFocus COBOL

Status
Not open for further replies.

ChrisPhillips

Programmer
Aug 1, 2000
11
NL
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.

 
This is what I use, in DOS.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top