In our day to day work as an ETL developer, we need to remove the files from the source after processing them into the system. If we are working as Talend developer then we can see that it is containing a lot of user friendly graphical controls to accomplish this kind of jobs.
We are going to show you how to check a file exists or not and then delete it after processing in Talend Open Studio.
We are using following components -
tFileExist: This component can be used as standalone component
and responsible to check if a file exists or not on a defined location. In fact,
it helps to streamline processes by automating recurrent and tedious tasks such
as checking if a file exists.
tFileInputDelimated: We can use this component to read a file and
separate fields contained in this file using a defined separator. It allows you
to create a data flow.
tLogRow: This component is used to monitor data processed and displays data or
results in the Run console. This component can be used as intermediate step
in a data flow or as a n end object in the Job flowchart.
tMsgBox: This component is useful to display a message on the screen and can be used as standalone component.
How to check if a File does exist or not- This scenario describes a simple Job that: checks if a given file exists, displays a graphical message to confirm that the file does not exist, reads the input data in another given file and display it by tLogRow component.
tFileDelete: This component suppresses a file from a defined directory. Means, helps to streamline processes by automating recurrent and tedious tasks such as delete. This component can be used as standalone component.
tJava: enables you to enter personalized code in order to integrate it in Talend program. keep in mind that we can execute this code only once.
How to delete a file after processing - This scenario describes a simple job to delete a file after processing it into the system.
To Learn more, please visit our blog at -
http://www.sql-datatools.com
To Learn more, please visit our YouTube channel at -
http://www.youtube.com/c/Sql-datatools
To Learn more, please visit our Instagram account at -
https://www.instagram.com/asp.mukesh/
To Learn more, please visit our twitter account at -
https://twitter.com/macxima
No comments:
Post a Comment