Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLRPGLE source size limit

Is there a limit to what the SQL pre-compiler can handle for an SQLRPGLE source object?

I have had some problems compiling a 25,000 line program and a line limit is the only thing that would explain the errors I'm getting

like image 887
Hamish Avatar asked Jan 19 '26 02:01

Hamish


1 Answers

A few thoughts ...

  1. What error are you getting when compiling? The idea that a 25k line program might cause the SQL pre-compile a problem is not outside the realm of possibility ... consider that the pre-compiler creates a new source member (in QTEMP) that gets passed through the normal compile, and this new source member is larger than the original. WAY back when I worked at SSA, we had problems (freudian slip) programs that were written in AS/SET that caused the compiler to choke on the size of the source members it generated. I don't remember the limitations though.
  2. A 25k line program is pretty damn huge ... might not be a bad idea to take a hard look at the program and see if it could be broken up into logical modules that are bound together into a program object.
like image 109
David G Avatar answered Jan 22 '26 03:01

David G