engine:import:extract
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:import:extract [2020/03/12 02:08] – [Syntax] Scott Cunliffe | engine:import:extract [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Syntax ==== | ===== Syntax ==== | ||
'' | '' | ||
- | |||
- | //string field;//\\ | ||
- | //Integer offset;//\\ | ||
- | //Integer length;//\\ | ||
- | //Integer record;//\\ | ||
^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ | ||
|field| String | The field to be set by this extraction.|1|128| | | | |field| String | The field to be set by this extraction.|1|128| | | | ||
- | |||
|offset| Integer | The zero based offset of the data to be extract, or the element index of a CSV element or SQL element. In the event that the data being processed is CSV based, a value of zero indicates that the raw CSV string should be extracted rather than an individual CSV element.|1|10|-214748364 |2147483647| | |offset| Integer | The zero based offset of the data to be extract, or the element index of a CSV element or SQL element. In the event that the data being processed is CSV based, a value of zero indicates that the raw CSV string should be extracted rather than an individual CSV element.|1|10|-214748364 |2147483647| | ||
- | |length| Integer| The length of the data to be extracted if the data is text based, or the maximum data length for CSV or SQL data.||1|10|-214748364 |2147483647| | + | |length| Integer| The length of the data to be extracted if the data is text based, or the maximum data length for CSV or SQL data.|1|10|-214748364 |2147483647| |
- | |record| Integer|The record within a header, if the value is non-zero and the data is text based. A record that is not a header if the value is zero and the data is text based. For CSV and SQL data this argument is ignored.||1|10|-214748364 |2147483647| | + | |record| Integer|The record within a header, if the value is non-zero and the data is text based. A record that is not a header if the value is zero and the data is text based. For CSV and SQL data this argument is ignored.|1|10|-214748364 |2147483647| |
- | ==== Example ==== | + | ===== Example |
- | **Extract: | + | Extract VOLUME field from offset 10, length 6 of the body of a report. |
- | |Extract(VOLUME, | + | < |
+ | Extract(VOLUME, | ||
+ | </ | ||
+ | Extract VOLUME field from the 2nd element of a CSV file. | ||
+ | < | ||
+ | SetCSVDelimiter("," | ||
+ | Extract(VOLUME, | ||
+ | </ | ||
- | **Extract: Extract VOLUME | + | Extract |
- | |SetCSVDelimiter("," | + | < |
- | |Extract(VOLUME, 2, 6, 0);| | + | Extract(REPOSITORY, 70, 4, 3); |
+ | </ | ||
+ | ===== See Also ===== | ||
- | **Extract: Extract REPOSITORY field from offset 70, length 4 of the 3rd record of a header.** | + | [[engine:import|Import Engine Functions]] \\ |
- | |Extract(REPOSITORY, | + | [[cli: |
+ | [[cli: | ||
{{tag> import_engine sync_engine}} | {{tag> import_engine sync_engine}} |
engine/import/extract.1583978933.txt.gz · Last modified: 2025/01/21 22:07 (external edit)