Consultor Eletrônico



Kbase P23728: Error 3307 with code compiled against AS/400.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

FACT(s) (Environment):

Progress/400 DataServer

SYMPTOM(s):

Error 3307 with code compiled against AS/400.

Error 3307 - Expression Code Segment (Ecode)

Ecode segment has exceeded its limit of <segment-size> bytes, in <file-name> at line # <line-number>. (3307)

Source code that compiles against a Progress database fails against the Progress/400 DataServer with error 3307.

CAUSE:

Compilation against the Progress/400 DataServer is more expensive in terms of segment space than compilation against a similar Progress database. To check the code segment sizes, start the session with the -yd startup parameter and look at the resulting client.mon file.

FIX:

The fix for the problem is:

1. Split the code into multiple procedure .p files.
2. Try to reduce the number of expression statements with internal procedure calls.
3. Reduce multiple element expressions into several sub-expression statements.