The Format as Flat FileClosed The Format as Flat File tool takes a BPA Platform recordset and converts it to a flat file to be used by another task step or external program. The flat file output can be delimited or fixed width. You can also choose whether the flat file contains data for single or multiple record types. tool does not require any global configuration; it can be immediately added to a task.

Where Should I Use a Format as Flat File Step?

Typically, you would add a Format as Flat File step after a step that exposes BPA Platform recordsets, for example, the Convert XML to RecordsetClosed The Convert XML to Recordset tool is used to convert XML data into a flat-format BPA Platform recordset, allowing the data to be used by recordset-only consuming tools. This could then be used to power alerts via fax, email, or SMS, create reports, power a workflow, perform FTP transfer, and so on. tool.

You would then follow the step with a tool that can consume and use the document exposed by the Format as Flat File step. For example, the Save FileClosed The Save File tool saves output from another task step capable of producing document, as one or more files on the local drive, on-premise file server, external server, or cloud based server. or Print DocumentClosed The Print Document tool allows you to produce hard-copies of documents created by other task steps. All standard printer properties are available to produce run-time-specific output. tool.

Example

The following example shows a process flow using a Format as Flat File step:

Task Flow for Format as Flat File

A Database Query (ODBC)Closed You typically use the Database Query (ODBC) tool to extract specific records from a relational database, using a valid ODBC driver to make the connection. These are then made available to other task steps as a recordset. step is used to extract sales data from the database. The outputted recordset is formatted as a CSV file, which is then opened in Microsoft Excel for further manipulation (not part of this task).

For more information about creating tasks, see How to Create a Basic Task.

For a detailed list of those tools the Format as Flat File tool can interact with, go to Working with Other Tools.

Adding a New Task Step

To add a new Format as Flat File step to an existing task:

  1. Open the relevant task (if creating a new task, see How to Create a Basic Task).
  2. Either:
Click and drag the Format as Flat File icon from the Task Browser to the task Design area.

–OR–

From the task's Design tab, right-click on empty space and select New > Format > Format as Flat File.
  1. In the General tab, Name your step and select the input data source.
  2. In the Main tab, inform the task step how to read the input data source and specify the required output.
  3. Go to the Options tab and select the relevant error handling options for this task step.

  4. Click  to save the task step.