File Writer agent
The File Writer agent exports data from a Prophix source table to other systems, through an export file.
The File Writer agent offers customizable options for enclosing selected columns in quotation marks: by default, all the columns are wrapped in double quotes, but you can choose which columns to exclude (useful when dealing with systems that do not accept double quotes for numeric values).
A File Writer agent can only be used as a source and can connect to the following destinations:
- Excel
- MySQL
- ODBC/ODBC32
- SQL Server
- Text
Add a connection
To add a connection for a File Writer agent:
- In the navigation panel, select Setup.
- Select a text agent or peer connection, and click > Add Connection.
-
Connection Name must be unique. Up to 40 characters.
Note: All the parameters listed below are required; none have character restrictions.
- Version determines the predefined script the agent uses. If available, select the version you want to use.
- Click Save.
Add a query
- Select a File Writer connection or peer query, and click > Add Query
- Query Name must be unique. Up to 40 characters.
- From Query Type accept the default option, Export File.
- In the Filters table, define the rows in Default value as follows:
- Table Name: The default name of the export data source table.
- File Name: The name for the export text file (include the .txt suffix).
- Fields: Optionally, the names of fields you do not want wrapped in double quotes—typically these are numeric-value fields; separate the names with commas.
- Sample value: What the user sees when hovering over the cell in the Data Integration process. Use it to show the expected input/format. Up to 50 characters.
- Hide: Turn on if you want to keep users of the Data Integration process from seeing the parameter, while using its Default value in the query.
- Click Save.