Procedure - 7.2

tFileCompare

Version
7.2
Language
English (United States)
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > File components (Integration) > File management components > tFileCompare
Data Quality and Preparation > Third-party systems > File components (Integration) > File management components > tFileCompare
Design and Development > Third-party systems > File components (Integration) > File management components > tFileCompare

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.
    Note: 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.