Sample job definition comments

You can use these sample job definition comments to help guide you as you create your own.

Example one: Flat file input

The following job definition comment defines a batch job that takes a flat file as input:

<TaskCommentBObj>
    <CommentText>
      <![CDATA[
        <InputURL>/tmp/load2013.txt</InputURL>
        <OutputURL>/tmp/load2013</OutputURL>
      ]]>
    </CommentText>
</TaskCommentBObj>

Example two: CSV file input

The following job definition comment defines a batch job that takes a CSV file as input:

<TaskCommentBObj>
    <CommentText>
      <![CDATA[
        <File>/tmp/load3000csv.txt</File>
      ]]>
    </CommentText>
</TaskCommentBObj>

Example three: Custom database input

The following job definition comment defines a batch job that takes a customized database query as input:

<TaskCommentBObj>
    <CommentText>
      <![CDATA[
        <SQLOverride>SELECT DISTINCT CURENTRECNO AS ENTITY_ID FROM MPI_ENTLINK_MDMORG WHERE CURENTRECNO NOT IN (SELECT ENTITY_ID FROM CONTACT WHERE PERSON_ORG_CODE = 'O' AND ENTITYLINK_ST_TP_CD = 2)</SQLOverride>
        <VariableParameter>ENTITY_TYPE=mdmorg</VariableParameter>
        <RuntimeOverride>Submitter.number=4</RuntimeOverride>
      ]]>
    </CommentText>
</TaskCommentBObj>

Example four: Dynamic database input

The following job definition comment defines a batch job that takes a dynamic database query as input:

<TaskCommentBObj>
    <CommentText>
      <![CDATA[
        <TaskParameter>ADDRESS.COUNTRY_TP_CD=185</TaskParameter>
        <TaskParameter>ADDRESS.PROV_STATE_TP_CD=23</TaskParameter>
        <TaskParameter>CONTEQUIV.ADMIN_SRC_TP_CD=1</TaskParameter>
        <TaskParameter>CONTRACTCOMPONENT.PROD_TP_CD=2</TaskParameter>
        <TaskParameter>CONTACT.PERSON_ORG_CODE=P</TaskParameter>
        <TaskParameter>CONTACT.ACTIVE_ONLY</TaskParameter>
        <TaskParameter>CONTRACTROLE.ACTIVE_ONLY</TaskParameter>
        <RuntimeOverride>Submitter.number=10</RuntimeOverride>
      ]]>
    </CommentText>
</TaskCommentBObj>

Example five: Customized input

The following job definition comment defines a batch job that takes a customized input type.

The name of the customized input type is enctxt. The property runtime.override.input.enctxt can be used to customize the runtime behavior of this new type, such as the reader, writer, and submitter for all jobs with this specific input type. See Batch job definition parameters for more information about RuntimeOverride.

<TaskCommentBObj>
    <CommentText>
      <![CDATA[
        <InputURL>/tmp/load5000.txt</InputURL>
        <OutputURL>/tmp/load5000</OutputURL>
        <InputType>enctxt</InputType>
      ]]>
    </CommentText>
</TaskCommentBObj>