Skip to main content

Problem:

"ERROR: (10) Requested main program entry point not found" when trying to compile a program that has a names larger than 30 bytes.

Resolution:

This is a limitation that is documented:

Limits on Names, Literals and PICTURE Character Strings

Language elements are limited to the following sizes:

Language Element

Maximum Size

Alphanumeric literal values

2048 bytes

PICTURE character string

30 characters

PICTURE replication  (for example, n in PIC X(n))

256,000,000

Program-Id name

30 characters

Entry point names

30 characters

Programmer defined words

30 characters

External filenames  (for program source and object files, copyfiles, data files)

261 characters for the filename, 256 characters for the basename and extension together

Dynamically loadable program names

261 characters for the filename, 256 characters for the basename and extension together. The first 30 characters must be unique

Old KB# 6973