1754889 Members
3547 Online
108827 Solutions
New Discussion

MF COBOL

 
SOLVED
Go to solution
Tony Bentley_1
Occasional Contributor

MF COBOL

While attempting to compile cobol programs, I am receiving the following error message.
What is the 'LINKCOUNT directive' and how do I increase its value?

3336 PROCEDURE DIVISION USING IEF-RUNTIME-PARM1, IEF-RUNTIME-PARM2,
* 67-S********* **
** Please recompile using a larger value for the LINKCOUNT directive
cob: error(s) in compilation: PRR0500.cob
*** Error exit code 16


1 REPLY 1
Alex Glennie
Honored Contributor
Solution

Re: MF COBOL

LINKCOUNT= integer

Allocates the reference area for all linkage records, external data
records and external files if an EXTERNAL record or file is defined in
the Data Division. If there are no such records or files in the Data
Division, there can be any number of linkage records in the Linkage
Section of your program. However, if any EXTERNAL items appear before
the start of the Linkage Section, as soon as the compiler enters one of
these it allocates a reference area to it, and to all future linkage
records and external items. In this case you will also need to specify
the LINKCOUNT option to determine the size of the reference area.

Default: LINKCOUNT = 64

Try : recompile using -C LINKCOUNT=128 in command line or add this to your COBOPT file