support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Compiler General > How do I resolve "Error writing file: too many constants" error?
Question Title How do I resolve "Error writing file: too many constants" error?

This error means that too many Java constants were created and the program cannot be compiled.
It is usually returned when compiling very huge source files.

To avoid the error, add the -big option to the Compiler options, but only for the programs that return this error.
Other programs might experience performance slowdown if they are unnecessarily compiled with the -big option.

The best way to set this option so it's only used on the programs that need it is to add the option to the top of the program using the ">>IMP OPTION" directive, like this:

   >>IMP OPTION "-big"
  IDENTIFICATION DIVISION.
  PROGRAM-ID. HugeProgram.

Authored by: Veryant Support This question has been viewed 8202 times so far.
Click Here to View all the questions in Compiler General category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. Why do I get the error "java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" ?
  2. Is there a faster way to compile?
  3. What compiler options cannot be specified with the >> IMP OPTION compiler directive?
  4. How can I make my Linkage parameters more flexible?
  5. How do I retrieve the version of the Java Compiler and the isCOBOL Compiler that produced a given class file?
  6. Using Regular Expressions to replace text in your program
  7. Is there a compiler option in isCOBOL to extend the length of AREA B in a program source code?
  8. This is a test
Article Information Additional Information
Article Number: 216
Created: 2013-11-18 4:24 AM
Rating: 1 Star
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.