Copying Jobs

Use this procedure to copy job-related information from one Lawson Environment to another.

To copy jobs

  1. Log into the source Environment.
  2. Dump the jobs to a file. At the command line, specify this information:

    jobdump -dl filename

    Note: You must specify the order in which you want data to be ordered in the dumpfile. Specify first DstGrp, second Job, and finally RecurJob to ensure the proper execution of jobload.

    The output (filename) is suitable for use by jobload. Dump files contain a list of DstGrp, Job, and RecurJob objects. Job objects contain all information regarding a job, including JobStep and JobStepRpt records. DstGrp objects contain all information regarding a DstGrp, including all DstGrpUser records belonging to the DstGrp.

  3. Copy the dump file to the destination Environment.

    Within the destination Environment, at the command line, specify this information:

    jobload -l [filename]

    The file loads and generates a validation message on the screen.

    Example

    Validation mode.
    DstGrp PRINT1: Invalid UserName "kit".
    DstGrp DstGrp=PRINT1 did not pass validation.
    Job CU201: UserName "davelo" is not valid.
    Job CU201: ProductLine "DEV73" does not exist. J
  4. Correct any errors. Use the jobload and jobdump utilities -m option to map invalid items from the source Environment such as UserNames or ProductLines to valid ones within the destination Environment.
  5. Commit the file. At the command line, specify this information:

    jobload -cl [filename]