Compile and Link the COBOL Sources

You need to compile and link all the COBOL sources in hlq.ENDEVOR.COBOL. There are two sample compile and link jobs delivered in hlq.ENDEVOR.CNTL. COBLNK4 can be used with a IBM COBOL V4 compiler. COBLNK6 can be used with a IBM COBOL V6 compiler.

      //JOBCARD                                                                       
//*---------------------------------------------------------------------        
//PCOBLNK  PROC MEMBER=,                      * MEMBER NAME SRC AND LOAD        
//         LOADLIB=HLQ.ENDEVOR.LOAD,          * TARGET LOAD LIBRARY             
//         SRCDSN=HLQ.ENDEVOR.COBOL,          * SOURCE DATASET                  
//         TDISK=SYSDA,                       * UNIT                            
//         LELKED=CEE.SCEELKED,               * LE SCEELKED                     
//         STEPCOB=COBOL.STEPLIB.SIGYCOMP,    * LE COBOL COMPILER              
//         COPYLIB=ENDEVOR.CSIQOPTN           * ENDEVOR CSIQOPTN                
//**********************************************************************        
//* COMPILE THE PROGRAM                                                         
//**********************************************************************        
//COB      EXEC PGM=IGYCRCTL,                                                   
//         COND=(4,LT),                                                         
//         PARM='LIST,MAP,LIB,RENT,SOURCE,DYN'                                  
//STEPLIB  DD DISP=SHR,DSN=&STEPCOB                                             
//SYSIN    DD DISP=SHR,DSN=&SRCDSN(&MEMBER)                                     
//SYSLIB   DD DISP=SHR,DSN=&COPYLIB                                             
//SYSLIN   DD DSN=&&SYSLIN,                                                     
//            DISP=(NEW,PASS),                                                  
//            UNIT=&TDISK,                                                      
//            DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=3120,                          
//            SPACE=(CYL,(5,5),RLSE)                                            
//SYSPRINT DD SYSOUT=*                                                          
//SYSUDUMP DD SYSOUT=*                                                          
//SYSUT1   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT2   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT3   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT4   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT5   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT6   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//SYSUT7   DD SPACE=(3120,(500,100),,,ROUND),UNIT=&TDISK                        
//**********************************************************************        
//* LINK EDIT THE COBOL PROGRAM                                                 
//**********************************************************************        
//LNK      EXEC PGM=IEWL,                                                       
//         COND=(4,LT),                                                         
//         PARM='AMODE=31,RMODE=ANY,LIST,XREF,RENT,REUS'       
//SYSLIN   DD  DSN=&&SYSLIN,DISP=(OLD,DELETE)                            
//SYSLMOD  DD  DISP=SHR,DSN=&LOADLIB(&MEMBER)                            
//SYSLIB   DD  DISP=SHR,DSN=&LELKED                                      
//SYSUT1   DD  DSN=&&SYSUT1,UNIT=&TDISK,SPACE=(1024,(50,20))             
//SYSPRINT DD  SYSOUT=*                                                  
//   PEND                                                                
//*--------------------------------------------------------------------- 
// EXEC PCOBLNK,MEMBER=TAUENP01                                          
// EXEC PCOBLNK,MEMBER=TAUENP02                                          
// EXEC PCOBLNK,MEMBER=TAUENP03                                          
// EXEC PCOBLNK,MEMBER=TAUENP04                                          
// EXEC PCOBLNK,MEMBER=TAUENP05   
// EXEC PCOBLNK,MEMBER=TAUENP06

Before you submit this job you must perform some customization:

Submit the job and verify that all compile and link steps were successfully executed.

If the job runs successfully, the load library HLQ.ENDEVOR.LOAD should contain seven members; the member DUMMY and six members TAUENPnn (nn=01 to 06).