Submitting multiple COBOL programs linked into one module

Before you begin

Before performing this sample parameterized build request, you need to ensure that the test programs have been set up as described in Setting up a test environment.

About this task

Use sample programs pbtest.cbl and pbtest3.cbl and the link control file pbmain.link to perform this test case. It can be performed from either the ClearCase® Explorer or the Windows® Explorer, provided the parameterized build menu items have been installed. This test case assumes both pbtest.cbl and pbtest3.cbl have been compiled and located in USERID.XOBJLIB. The link control file is uploaded to the z/OS® system with the name PBMAIN located in USERID.XLOADLIB.

Procedure

  1. Edit the link control file USERID.XLOADLIB(PBMAIN) on the z/OS system if needed.
    The following is the sample link control PBMAIN:
    INCLUDE OBJLIB(PBTEST)
    INCLUDE OBJLIB(PBTEST3)
    ENTRY PBTEST
    NAME PBTEST(R)
  2. Add the type attribute LNKDECK to pbtest.cbl and assign the value PBMAIN to LNKDECK as described in Configuring the view elements.
  3. Right-click pbtest.cbl and select Submit Link Job.
  4. Verify the output load module on the z/OS system for the build request.