Update DB table

Workshop - Update DB

Update Employees

1002, Murphy, Diana,x5800,[email protected],1,1000,CEO

1102, Bondur, Gerard,x5408,[email protected],4,1056,Regional Sales Manager (EMEA)


Create a new Transformation

Any one of these actions opens a new Transformation tab for you to begin designing your transformation.

  • By clicking File > New > Transformation

  • By using the CTRL-N hot key

Placeholder for Update DB table.

Text file input

The Text File Input step is used to read data from a variety of different text-file types. The most commonly used formats include Comma Separated Values (CSV files) generated by spreadsheets and fixed width flat files.

The Text File Input step provides you with the ability to specify a list of files to read, or a list of directories with wild cards in the form of regular expressions. In addition, you can accept filenames from a previous step making filename handling more even more generic.

  1. Start Pentaho Data Integration.

Windows - PowerShell

Set-Location C:\Pentaho\design-tools\data-integration
.\spoon.bat

Linux

cd
cd ~/Pentaho/design-tools/data-integration
./spoon.sh
  1. Drag the Text File Input step onto the canvas.

  2. Open the Text File properties dialog box.

  3. Ensure the following details are configured, as outlined below:

Set path to employess.txt

Because the sample file is located in the same directory where the transformation resides, a good approach to naming the file in a way that is location independent is to use a system variable to parameterize the directory name where the file is located. In our case, the complete filename is:

${Internal.Transformation.Filename.Directory}/employees_update.txt

  1. Click on the ‘Content’ tab and configure the following properties:

Text file input - Content
  1. Click on ‘Get Fields’ button.

  2. Click on the ‘Fields’ tab and notice the following properties:

Text File input - Fields
  1. Close the step.

Last updated

Was this helpful?