Updating Jobs with execaction

Use this procedure if you want to use execaction to modify the parameters or properties of a job that has already been defined.

To update jobs with execaction

  1. For each of the jobs, run the following dbexport command:

    dbexport -z dumpfile.zip -C dataArea BatchTask -f "BatchTask=value" --fields=Data

    where dumpfile.zip is the name of the zip file that will contain a CSV file which in turn will contain the XML data for the batch task, dataArea is the name of the data area the action, and value if the name of the batch task.

  2. Open the CSV file in the zip file in a text editor and make the following changes:
    • Remove the "Data" text at the beginning of the file and remove the quotes that surround the XML content.

    • Change all double sets of double quotes to single sets of single quotes. For example, className=""Actor"" should change to className='Actor'.

  3. Make any modifications you want to make to the parameters or properties for the jobs in the output files.
  4. Save the file and then check that it is valid XML. Some browsers can validate the XML and you may have other tools of your own for this that you can use.
  5. Copy the content of the output file or files to a new text file. This new file will be used as the input data file for the execaction command.
  6. After you have copied the content to the input file, edit the file so that it has the following format for each action.
    # Action 1
    #
    --command
    -F
    --Fields BatchTask="value" Data="<XML content copied from one output file>"
    
    # Action 2
    --command
    -F
    --Fields BatchTask="value" Data="<XML content copied from one output file>"
  7. Run the execation command. At the Landmark command line, type

    execation dataArea BatchTask Update -f inputFile

    where dataArea is the data area the actions in the input file apply to and inputFile is the file containing the command data.