Define Import Structure Specifications - the Filters Tab
You can use this tab to define any filters to determine which rows in the text file should be included or ignored based on a given criterion.
If the import specification contains more than one filter, all filters have to be satisfied for a row to be imported from the file. For example, you can define on which row the loading process should begin or end. You can also state that a certain row number must be loaded and that rows or fields that contain or do not contain a certain value must be loaded.
Before you begin
When you define conditions you can use different types of wildcards to represent one or several characters. The table shows wildcards you can use and what type of characters they match or skip.
Wildcard character | Description | Example: |
---|---|---|
None |
ab - Matches abc, Xab |
|
. |
Any single character |
a.a - Matches aaa, a3a, aBa |
.* |
Several characters |
a.*a - Matches aa, aBa, aBBBa |
\* |
Special characters |
A\*a - Matches a*a |
^ |
Starting with |
^ab - Matches any string starting with ab |
$ |
Ending with |
ab$ - Matches any string ending with ab |
[0-9] |
Single digit |
a[0-9]a - Matches a0a, a9a |
[a-z] |
Within an interval |
[a-z] - Matches f, p, j |
[^a-z] |
Outside an interval |
[^a-z] - Matches 9, &, % |
[^0-9] |
Except digits |
[^0-9] - Matches A, a, & |
a[^b-m][0-9] |
A combination |
a[^b-m][0-9] - Matches aN9, az0, a99 |
Procedure
Results
- If several filters are defined, all filter criteria must be passed for a row to be imported.
- Defined variables are not affected by filters. The filters only apply to fields that are loaded from each row in the import file.