Now you will create a Job similar to the one you created at the beginning of the chapter, but with the addition of some extra tasks. The new version of the Job will create a folder with a name of your choice. If an error occurs, the fact will be reported to the PDI log. Here are the instructions:
- Open the Job you created before and save it under a different name
- Double-click the Create folder entry and replace the name of the folder with ${Internal.Entry.Current.Directory}/${MY_FOLDER}
- From the Utility category of steps, drag to the canvas a Write To Log entry
We want to run this last entry only when the creation of the folder fails. We do it as follows:
- Create a new hop from the Create folder ...