• User's guide
  • API
Search Results for

    Show / Hide Table of Contents
    • Concepts
    • Installation
    • Configuration
      • Overview
      • License
      • Datasources
      • Configuration
      • Plug-Ins
      • Codepages
      • Environment Variables
      • Include files
      • Example
    • Jobs
      • Jobs
      • Include
      • Multi-Threaded Jobs
      • Tracking Jobs
    • Tasks
      • Overview
      • Copy Check
      • Excel
      • File Compare
      • File Copy
      • File Dump
      • File Edit
      • File Format
      • Foreach
      • Generate
      • IMS/DB Data Conversion
      • JCL Submit
      • Listcat
      • Log
      • Powershell
      • Set Environment Variable
      • Sql
      • Stored Procedure Compare
      • Table Compare
      • Table Copy
      • Table Load
      • Table Scan
      • Table Unload
      • User Script
    • Layouts
      • Overview
      • XML Definition
      • COBOL Definition
      • Field data Types
    • Extensibility
      • Extending Ianus
      • Column Comparators
      • Column Converters
      • Record Comparators
      • File Editors
      • User Script
      • Record Layout Match Class
      • Column Layout Match Class
      • User Fields
      • Codepages
      • Resources
    • Usage
      • Command Line
      • Monitors
      • Programmatically
      • Unit Testing
    • Known Issues
    • Disclaimers

    Jobs

    As described before, the Job is the set of tasks to be performed. A job script is an XML file defining the tasks to be performed by the job.

    Tasks can be executed in:

    • single threaded mode (default): tasks are executed sequentially.
    • multi threaded mode: tasks are executed in parallel, according to their specific “thread” setting.

    For further explanation on multi-threaded jobs, please refer to Multi-Threaded Jobs.

    The job is defined by the XML element job whose attributes configure the execution parameters. The following attributes configure the job:

    Attribute Type Purpose Default
    name string The job name. the script file.
    stopon string If specified, defines the error condition causing the job to stop. Refer to Stop Conditions for detailed description. never
    multithread bool Enables/disables multithreaded tasks execution. false
    maxparalleltasks integer Sets the number of maximum paralles tasks. If set to zero, it assumes the default value. 256
    memorycheck bool If set to true, Ianus logs memory stats in the log false

    The Task elements are used to define the tasks included in the job.

    Stop Conditions

    The following stop conditions are admitted:

    Value Condition
    abort Job stops when a step aborts
    error Job stops when a step ends with errors
    warning Job stops when a step ends with warning
    never Job executes all steps, regardless of their exit status

    Include Element

    Using the Include element it is possible to include other XML files inside a job script.

    Example

    <?xml version="1.0" encoding="utf-8"?>
    <job name="DB2vsSQL">
    
      <tablecompare name="TBLCMP01" mode="key" left="DB2" right="QS">
        <left>ADMINISTRATOR.TEST01</left>
        <right>dbo.TEST01</right>
      </tablecompare>
      
      <filecompare name="FILECMP03" left="REPOEBCDIC" right="REPOEBCDIC">
        <log>**** SEQ VAR IBM vs IBM comparison ***</log>
        <left recfmt="variable" reclen="932">SYS053.bin</left>
        <right recfmt="variable" reclen="932">SYS053.bin</right>
        <layouts>
          <layout type="cobol" format="free" length="auto">
            01  SYS053-DESCR.
                03  HEADER-SUP      PIC X.
                03  HEADER-CLE-TAB  PIC 9(4).
                03  HEADER-CLE-CENR PIC 9.
          </layout>
        </layouts>
      </filecompare>
      
    </job>
    
    In This Article
    Back to top Copyright 2021 - Hewlett-Packard Enterprise