Previous Page | Next Page

Accessing External Files

Using Wildcards in UNIX System Services Filenames

You can use the * (asterisk) wildcard to specify file concatenations in the FILENAME, INFILE, and %INCLUDE statements and the INCLUDE command. The * matches one or more characters, except for the period at the beginning of filenames. The wildcard is supported for input only. You cannot use the wildcard in the FILE statement.

All of the pathnames in a concatenation must be for UNIX System Services (USS) files or directories. A wildcard character that generates a list of mixed file types results in an error.

The following rules apply to the use of the * wildcard:

Examples of the * wildcard follow:

Wildcards that you use when you pipe data from SAS to USS commands are not expanded within the SAS session, but are passed directly to the USS commands for interpretation.

Previous Page | Next Page | Top of Page