This Java scenario describes a very simple Job that writes data entries in an .sav file.
Drop a tRowGenerator component and a tSPSSOutput component from the Palette onto the design workspace.
Right-click on tRowGenerator and connect it to tSPSSOutput using a Main Row link.
In the design workspace, double click tRowGenerator to display its Basic Settings view and open its editor. Here you can define your schema.
Click the plus button to add the columns you want to write in the .sav file.
Define the schema and set the parameters to the columns.
Make sure to define the length of your columns. Otherwise, an error message will display when building your Job.
Click OK to validate your schema and close the editor.
Click tSPSSOutput to display its Basic settings view and define the component properties.
Click the three-dot button next to the Filename field and browse to the SPSS .sav file in which you want to write data.
Click the three-dot button next to Sync columns to synchronize columns with the previous component. In this example, the schema to be inserted in the .sav file consists of the two columns: id and country.
If required, click Edit schema to view/edit the defined schema.
From the Write Type list, select Write or Append to simply write the input data in the .sav file or add it to the end of the .sav file.