write an empty file after ETL finishes

Highlighted
Four Stars

write an empty file after ETL finishes

Hi,

 

My question is ,

  If a ETL job finishes successfully, I want to write a empty text file to a location. This file will be used by downstream jobs to run.

  I used toutpufiledelimited at the end of a job, but it doesn't let me connect "On Subjob Ok". I want to write the file only if the job before it completed successfully.

Can anyone help me with the best approach to do it.

 

Thanks,


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: write an empty file after ETL finishes

You should use tFileTouch in such a case. This component is here for empty files creation.

TRF

View solution in original post


All Replies
Highlighted
Ten Stars

Re: write an empty file after ETL finishes

Output components can't start a subjob.

 

This article might be helpful:

https://help.talend.com/reader/caIHaZhq~ebe_biKd~hB9A/UXJi_oHJ9jWexQ0zNJwoEQ

Highlighted
Sixteen Stars
Sixteen Stars

Re: write an empty file after ETL finishes

You should use tFileTouch in such a case. This component is here for empty files creation.

TRF

View solution in original post

Highlighted
Four Stars

Re: write an empty file after ETL finishes

Thank You all !

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog