Link-editing user-defined functions

For AMODE 31 (31-bit) compilations using the LP(32) option, when a compilation group contains user-defined functions and programs, and one of the programs is intended to be the main program, you must provide a binder ENTRY statement for the main program to avoid defaulting to the first user-defined function. For AMODE 64 (64-bit) compilations using the LP(64) option, programs will generate the CELQSTRT entry (but not user-defined functions), so use the usual ENTRY CELQSTRT statement.

About this task

See the following example of the JCL step:
//LKED1    EXEC PGM=IEWL,
// PARM='LIST,MAP  '
//SYSLIB   DD DSN=CEE.SCEELKED,DISP=SHR
//OBJECT   DD DSN=&&OBJECT,DISP=(SHR,PASS)
//SYSLIN   DD *
    INCLUDE OBJECT(OBJ1)
    ENTRY MAINPROG   
/*