You can configure the Excel stage to modify an existing Microsoft Excel file.
About this task
The Excel stage supports only the OOXML (.xlsx) format of Microsoft Excel files as the target file and template file.The Excel stage does not support modifying
.xls files or password encrypted
files.
Procedure
- On the canvas, double-click the Excel stage.
- On the Input tab, select the input link from the Input
name field.
- In the Columns section, ensure that columns are properly
defined.
- On the Stage tab, from the Write mode list,
select Modify existing file.
- Specify the target file details to write the data to.
- In the Output file section, select Create data
asset to have the job run create an asset and add it to the
Assets tab automatically.
- In the File name field, specify the name of the file to write
data to.
- If more than 32 columns will be updated in the Microsoft Excel sheet, specify the number of the column in the Number of columns to
load field.
- In the Properties section, select None
or First row from the Column header
list.
- Enter a value in the field Start writing from this
row.
If you specify the first row, enter a value that is greater than or
equal to 2 or enter a value that is greater than or equal to 1.
- Click Edit in the Map section, then
click Import columns.
- Specify the Microsoft Excel details to import
in the Import page.
- From the Sheet list, select the Microsoft
Excel sheet to update.
- From the list of columns, select the Microsoft Excel columns to update.
- Click Import.
- Map the imported Microsoft Excel columns to
the DataStage® columns that are defined in the
input link. Select a column to write the data.
- Repeat the steps for the Properties section and mapping for all
the input links.
- Click Save.