Skip to main content
Question

Line Length in COPYs

  • February 13, 2026
  • 3 replies
  • 23 views

sergi.yague
Forum|alt.badge.img+1

I have a COPY project that is used in other COBOL projects. In this COPY project, there are lines of code that need to be continued because they exceed 80 characters. For example:
05 PIC X(70) VALUE "(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- "x)".
In fact, the Enterprise Developer IDE for Eclipse 11 reports the following errors for this line:
- COBCH0026S Literal too long
- COBCH1007E VALUE literal size 227 > data item size 70. Literal truncated.
And since it's a COPY project, I can't apply compilation directives. In fact, I don't understand why the IDE is trying to compile a COPY. Does anyone know how to solve this problem?
Thank you very much.

3 replies

Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 13, 2026

Hi Sergi,

As a test, if you close any COBOL projects (that use the Copybook project ),don’t close the Copybook one, do you still see this error? I suspect the error is coming from a compilation of a COBOL programs that is referencing the Copybooks/Copybook project.
 
Or is this related to a background parser / syntax check? 

If further assistance is required I recommend you to consider raising a support case to seek further assistance. When raising the case please include a cut down project (use the Eclipse export feature) and attach that to the case that can be used to reproduce the issue. This will help speed up testing also ensure the support team test like for like.

Regards,
Kim


sergi.yague
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • February 16, 2026

Hello Kim.

I have closed all the projects (except the COPYBOOKS project) and all the errors have disappeared. So, following your instructions, I will open a support case as you indicated.
Nonetheless, since I had worked to provide a specific case, I have this COPYBOOK that has these first three lines:
         1         2         3         4         5         6         7 
123456789012345678901234567890123456789012345678901234567890123456789012
       01  XXXXXXXXXX-XXXXXXXXX.                                        
           05 PIC X(70) VALUE "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -    "XXXXXXXXXXXXXXXX".                                          
And the error reported by Enterprise Developer for Eclipse 11 (Windows 11 Platform) on the third line is the following:
Multiple markers at this line
- COBCH0026S Literal too long
- COBCH1007E VALUE literal size 241 > data item size 70. Literal truncated
An error that makes no sense, because even adding up all the characters of the three lines (222 characters) doesn't sum to 241.


Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 16, 2026

With your test it shows that there is no issue with the COPYBOOKS project as when only that is opened there is no error shown.
BUT if you still require assistance with the errors you are facing then I recommend a support case raised, please include the project export with needed source files that ca be used to recreate the errors, this will speed up the investigation. Also share the product/version used and Operating System details in the support case.

Regards,
Kim