SELECT.FIXEDWIDTH
Selects content from a source of text data, with columns at fixed horizontal positions and widths.
Properties
From | Name of the Input Data Source. The input-source can contain either a file-path, a PBinaryStream object or a .Net Stream object. A Stream object can only be specified programmatically. |
To | Name of the Output Data Source. |
Parameters
@Context | Specifies in which context to find data in the document.
Shortcuts |
@Encoding | Set the file encoding. If it is not set, it will use the Byte Order Mark (BOM) and without BOM it will use the default encoding for the Windows implementation. It is possible to set encoding to: UTF-8, UTF-16 (Unicode), utf-16BE (Unicode Big-Endian), windows-1252 and other Code Page Names from Code Page Identifiers - Win32 apps (From Perfion 2023R1) |
@Filter | Filter the result of the selected data. See Command Maps & Parameters for more information. |
@Order | Order the result of the selected data. See Command Maps & Parameters for more information. |
Map
From | Name of Header, as it is named in the file. |
To | Name of the Header as it should be called in the Output table |
Script | Any Script code to execute for this header |
Example
Above example will read the file content shown below, with data at the specified column positions, with no headers, numbers with comma as decimal separator and dates formatted as date-month-year.
- 1 Properties
- 2 Parameters
- 3 Map
- 4 Example