  |
 | Create a File positional metadata
|
In the Repository on the left of the Talend Open Studio main screen: Expand the Metadata node. Right-click on File positional. In the menu, click Create file positional to open the New Positional File wizard.
Next
|
  |
In the New Positional File wizard: In the Name field, name the metadata customers. Click Next to continue.
Next
|
  |
Click Browse... and select the customer.txt file from the wizard. From the Format list, select your computer OS. In the File Viewer area, click between two columns of data to delimit the length of the columns and adjust it by dragging the orange arrow to the very beginning of the next column. You can also define the length of each column in the Field Separator field. Click Next.
Next
|
  |
The schema of the file displays in the Preview area. As the first line of the file corresponds to the column names, check the Set heading as column names box to retrieve them. In the Rows To Skip area, check the Footer box and fill in the number of footer rows to ignore: 2, for example.
Click Refresh Preview to take the new parameters into account. In the Limit of Rows area, check the Limit box and fill in the number of rows to be processed: 4. Click Refresh Preview. Click Next.
Next
|
  |
In the Description of the schema area, a default schema is provided but you can modify it. Check the Key box for the id column and uncheck the Nullable box for the id, idState and id2 columns. Click Finish.
Next
|
  |
In the Repository on the left: The customers metadata is displayed in the Metadata > File positional node.
|