Running commands to manually copy program source code and metadata between product lines

Use this procedure to ensure that the metadata files and the GEN runtime metadata repository are consistent, identify the set of files that need copying for a program, and package the files into a tar file.

  1. Run appmetadiff to create a report of any inconsistencies. At the command line, specify this information:

    perl $GENDIR/bin/appmetadiff productLine

  2. Examine the appmetadiff.rpt report. It is located at $LAWDIR/productLine/Admin.

    Resolve any inconsistencies. For more information, see Resolving appmetadiff Differences.

  3. Identify the set of source code files associated with the program you want to copy.
    1. cd $LAWDIR/productLine/systemCodesrc
    2. ls . /programCodePD.*

      ls . /programCodeWS.*

      ls . /programCode.*

      Example

      The results for batch program GL160 will be:

      GL160PD

      GL160WS

      GL160.rpt

      GL160.scr

      Note: 

      Online programs will not have a .rpt file. Some programs will also have a .cfg file. You can ignore .xml files. These will be regenerated in the target product line.

  4. Identify the set of metadata files associated with the program you want to copy.
    1. cd $LAWDIR/productLine

      ls ./metadata/systemCodemeta/programCode.*

      Examples

      ls ./metadata/ifmeta/GL160.*

      ls ./metada/ifmeta/CU20.*

      The results for batch program GL160 will be:

      GL160.pgm

      GL160.msg

      GL160.mnu

      The results for CU20 will be:

      CU20.pgm

      CU20.msg

      CU20.1.mnu

      CU20.2.mnu

      CU20.3.mnu

    2. Determine if the program uses work files (*.wrk). If work files are used, add them to the list of files.

      ls ./metadata/systemCodemeta/programCode*.wrk

      Example

      ls ./metadata/ifmeta/GL160*.wrk

      GL160_GL160WORK.wrk

      GL160_WORK.wrk

  5. Change directory to the product line directory. At the command line, specify this information:

    cd $LAWDIR/productLine

  6. Create an archive of the program code metadata and source files. At the command line, specify, as a single command, the following lines:
    Note: Consult your list of files need for the program you are copying. The actual files to include in the tar archive will vary, depending on whether it is an online or batch program, whether the program uses work files, and so on.

    tar –cvf programCodeFiles.tar

    ./metadata/systemCodemeta/programCode.*

    ./metadata/systemCodemeta/programCode*.wrk

    ./systemCodesrc/programCodePD

    ./systemCodesrc/programCodeWS

    ./systemCodesrc/programCode.*