Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Example: batch compilation

The following example shows a batch compilation for three programs (PROG1, PROG2, and PROG3) and the creation of two load modules using one invocation of the IGYWCL cataloged procedure.

The following steps occur:

//jobname  JOB  acctno,name,MSGLEVEL=1
//stepname EXEC IGYWCL
//COBOL.SYSIN  DD *
010100 IDENTIFICATION DIVISION.
010200  PROGRAM-ID PROG1.
        . . .
019000  END PROGRAM PROG1.
020100 IDENTIFICATION DIVISION.
020200  PROGRAM-ID PROG2.
        . . .
029000  END PROGRAM PROG2.
 CBL NAME
030100 IDENTIFICATION DIVISION.
030200  PROGRAM-ID PROG3.
        . . .
039000  END PROGRAM PROG3.
/*
//LKED.SYSLMOD DD DSN=&&GOSET                   (1)
/*
//P2       EXEC PGM=PROG2
//STEPLIB  DD   DSN=&&GOSET,DISP=(SHR,PASS)     (2)
. . .                                           (3)
/*
//P3       EXEC PGM=PROG3
//STEPLIB  DD   DSN=&&GOSET,DISP=(SHR,PASS)     (2)
. . .                                           (4)
/*
//
(1)
The data-set name for the LKED step SYSLMOD is changed to the temporary name &&GOSET, without any member name.
(2)
The temporary data set &&GOSET is used as the STEPLIB for steps P2 and P3 to run the compiled programs. If the Language Environment library does not reside in shared storage, you must also add the library data set as a DD statement for STEPLIB.
(3)
Other DD statements and input that are required to run PROG1 and PROG2 must be added.
(4)
Other DD statements and input that are required to run PROG3 must be added.

related references  
Language Environment Programming Guide (IBM-supplied cataloged procedures)


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)