2E Compilation Issue With Many Internal Functions
search cancel

2E Compilation Issue With Many Internal Functions

book

Article ID: 212427

calendar_today

Updated On:

Products

CA 2E

Issue/Introduction

When compile  PGM with big functions in 2E 8.7, compilation does not finish and shows error like this


Member       Type     Act Status  Text                                             
PGM-name     RP4  GEN *GENSRC ACTIVATE INVOICING        Execute external function

 

 

 

Environment

Release : 8.7

Component : CA 2E

Resolution

The problem is it has so many internal functions and especially some user points are very huge in the some functions.

To overcome that huge source generation and 16MB run unit error you can restrict comment generation by changing the YGENCMT model value. 
YCHGMDLVAL MDLVAL(YGENCMT) VALUE(*NO)

The 16MB memory limitation is imposed by IBM.

Please notice that the best practice is to modularize the huge function by converting some of the independent internal functions as external functions. Therefore, you may consider re-module your PGM to avoid too many independent internal functions.