Using JCL to invoke the message compiler

To invoke the compiler as a batch job, code the following JCL:

//*
//*        GENERATE DATA OBJECT FROM EXTRACTED MESSAGES
//*
//COMPILE  EXEC  PGM=CNLCCPLR,
//               PARM=(lang,dbcs)
//SYSUT1   DD    DSN=msg_pds,DISP=SHR                  /* THE INSTALL MESSAGE FILE */
//SYSUT2   DD    DSN=msg_div_obj,DISP=(OLD,KEEP,KEEP)  /* THE VSAM DATA SET */
//SYSPRINT DD    SYSOUT=*