Submitting a single program with a copybook

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 program pbtest2.cbl and copyone.cpy to perform this test case.

Procedure

  1. Edit copyone.cpy as needed.
  2. Issue the following command from the UNIX® command line:
    perl  copybook_main.pl -i /userProfilePath/profileUSER -d /viewElementDirectoryPath copyone.cpy
    In this command:
    userProfilePath
    Is the location of the profileUSER file.
    viewElementDirectoryPath
    Is the location of the parameterized build sample programs.
  3. Verify the following expected results:
    • The copybook file copyone.cpy is uploaded to PDS userid.A.XCOPYLIB.
    • The following files are found in the OUTPUT_LOG location defined in profileUSER:
      • copyone.cpy_uploadcopybook.log
      • rccbuild.log
    • The following files are found in the OUTPUT_LIST location defined in profileUSER:
      • s1alloc.jcl
      • upload.jcl
    • Return codes for MVS™ steps S1ALLOC and UPLOAD are all '000000'.
  4. Issue the following command from the UNIX command line:
    perl  bccPmbld_main.pl -i /userProfilePath/profileUSER -d /viewElementDirectoryPath pbtest2.cbl
    In this command:
    userProfilePath
    Is the location of the profileUSER file.
    viewElementDirectoryPath
    Is the location of the parameterized build sample programs.
  5. Verify the following expected results:
    • The build succeeded.
    • The following files are found in the OUTPUT_LOG location defined in profileUSER:
      • userid_pbtest1_compile.log
      • userid_pbtest2_compile.log
      • userid_pbtest1_rccbuild.log
      • userid_pbtest2_rccbuild.log
    • The following files are found in the viewElementDirectoryPath. In these file names, sourcefile is the name of the file for which the parameterized build command is issued, such as s1alloc_pbtest1.bcl.
      • compile_sourceFile.jcl
      • devprint_sourceFile.jcl
      • lnkbatch_sourceFile.jcl
      • s1alloc_sourceFile.jcl
    • Return codes for MVS steps S1DELETE, S1ALLOC, COB, LDNAME, and LKED are all '000000'.
    • The following files are found in the OUTPUT_LIST location defined in profileUSER:
      • userid_sourceFile_cob.sysprint
      • userid_sourceFile_ldname.sysprint
      • userid_sourceFile_lked.sysprint