Compiling and binding AMODE 64 programs under z/OS

You can compile Enterprise COBOL AMODE 64 applications under z/OS® using job control language (JCL), TSO commands, CLISTs, or ISPF panels. The process is the same as the corresponding tasks for COBOL AMODE 31 applications.

About this task

The key differences are as follows:
  • Specify the LP(64) compiler option
  • Include the Language Environment® system library SCEEBND2 in the SYSLIB DD of the Bind step
  • Include the Language Environment system library PDSE member SCEELIB(CELQV004) in the SYSLIN DD of the Bind step
  • Include the Binder option RENT
  • If you specify an explicit ENTRY statement in the Bind step for LP(64) COBOL programs, it must specify ENTRY CELQSTRT. In other words, the entry point for LP(64) programs is not the name in the PROGRAM-ID statement, it is CELQSTRT.
  • For an LP(64) COBOL program to be called dynamically, the program-name in the PROGRAM-ID paragraph must be identical to the corresponding program object name. For details, see Making dynamic calls.

When compiling with JCL, IBM® provides a set of cataloged procedures, which can reduce the amount of JCL coding that you need to write. If the cataloged procedures do not meet your needs, you can write your own JCL. Using JCL, you can compile a single program or compile several programs as part of a batch job.

For illustrative purpose, the following JCL code fragment shows how to modify an existing compile and bind step JCL to build COBOL AMODE 64 programs:
//COMPILE EXEC PGM=IGYCRCTL,REGION=0M,
//   PARM=’LP(64)’                                  <-  add LP(64) option
// …
//BIND EXEC. PGM=IEWBLINK,REGION=0M,
// PARM=’RENT,DYNAM(DLL)’                           <- add RENT and DYNAM(DLL) options
//SYSLIB  DD. DSN=CEE.SCEEBND2,DISP=SHR             <-  include .SCEEBND2
//              …
//SYSLIN  DD   …
//        DD   DSN=CEE.SCEELIB(CELQV004),DISP=SHR   <- include member CELQV004
// …
You can also use the following cataloged procedures.
  1. IGYQC - A single-step cataloged procedure for compiling a COBOL AMODE 64 program
  2. IGYQCB - A two-step cataloged procedure for compiling and binding a COBOL AMODE 64 program
  3. IGYQCBG - A three-step cataloged procedure for compiling, binding, and running a COBOL AMODE 64 program