Wildcard Expressions in a Filename - Access Module

Teradata® Tools and Utilities Access Module Reference

Product
Access Module
Release Number
16.20
Published
November 2020
Language
English (United States)
Last Update
2020-11-18
dita:mapPath
igy1527114222333.ditamap
dita:ditavalPath
igy1527114222333.ditaval
dita:id
B035-2425
lifecycle
previous
Product Category
Teradata Tools and Utilities

Wildcard expressions in a filename can be used in the data import scenario, where data is loaded into the Teradata Database. Wildcard characters in a filename can be specified by setting "S3SinglePartFile=True" and simultaneously using the wildcard characters * or ? in the S3Prefix name or S3Object name.

S3 Objects are selected using the same rules as in the Unix shell. Filenames matching the wildcard file specifications are added in the job log, and data from each file whose name matches the wildcard expressions are loaded into the Teradata Database table.

Wildcard expressions that match a "/" in the object name with a wildcard character will be skipped. Wildcard characters will no longer match the '/' separator in names. For example, '/ab*' will not match '/abc/xyz'. You can enter /alph*/* to match /alphabet/a, /alphabet/b, etc. This is the same behavior that you would expect from GLOB during shell filename expansion.

S3Prefix and S3Object are concatenated before expansion. Wildcard characters can appear in either. Wildcards which do not match any files will show the correct pattern in the error response.