Skip to main content Skip to complementary content

Procedure

Procedure

  1. Create the Job.
    1. Drag and drop the following components: tFileUnarchive, tFileCompare, and tFileOutputDelimited.
    2. Link the tFileUnarchive to the tFileCompare with an Iterate connection.
    3. Connect the tFileCompare to the output component using a Main row link.
  2. In the Basic settings view of the tFileUnarchive component, fill in the path to the archive to unzip.
  3. In the Extraction Directory field, fill in the destination folder for the unarchived file.
  4. In the Basic settings view of the tFileCompare component, fill the File to compare field by clicking in the field, pressing Ctrl + Space bar, and selecting "((String)globalMap.get("tFileUnarchive_1_CURRENT_FILEPATH"))" from the context menu.
    This variable fetches the output file of the tFileUnarchive component.
  5. Fill the path to the reference file in the Reference file field.
  6. In the messages fields, set the messages you want to see if the files differ or if the files are identical, for example: "[job " + JobName + "] Files differ".
  7. Select the Print to Console option for the message defined to display at the end of the execution.
    Information noteNote: The schema is read-only and contains standard information data. Click Edit schema to have a look at it.
  8. Set the output component as usual with semi-colon as data separators.
  9. Save your Job and press F6 to run it.
    The message set is displayed in the console and the output shows the schema information data.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!