Example
This example Data Stream demonstrates how to use this Action Agent to process new fixed-width files detected in a file directory.
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Fixed Width File Reader onto the canvas, link the input endpoint to File Listener, and the output to the printer. Rename the Agent and save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. Keep the default Collection.
Step 3: Configure Settings
Select the Runtime Text File Path Mapping. In this case, select Path.
Upload the sample text file. This is used for configuration only and should have identical column widths to those the Agent will process once published.
Enter the name and width for each column:
Name, 8
Date, 23
Type, 3,
Amount, 40
Click Refresh Sample to update the sample result and confirm the column widths are correct.
Step 4: Results
Apply the changes, save the Data Stream, and publish it.
Let's look at the Live Data View. Move or copy the OTemp Date.txt file into the file directory monitored by the Get Temp Data Agent. Observe that the Temp Data file's contents are printed and the columns correspond to the column definition.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated