SELECT.CSV
Selects content from a source of text data in the form of CSV, TXT, TAB or any other separated text.
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 |
@ColumnsType | The data type of the column is detected automatically, but from Perfion 2022-R2-SR1 it is possible to specify the data type by adding S, N, D or A (String, Number, Date, Automatically) via the parameter @ColumnsType separated by / like S/D/N/A which will enforce the first column as a string, the secund as Date and so on. |
@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 below file with no headers, semi-colon separated, qualified with ", numbers with comma as decimal separator and dates formatted as date-month-year.
- 1 Properties
- 2 Parameters
- 3 Map
- 4 Example