Previous Page | Next Page

The DATASETS Procedure

EXCLUDE Statement


Excludes SAS files from copying.
Restriction: Must follow a COPY statement
Restriction: Cannot appear in the same COPY step with a SELECT statement
Featured in: Manipulating SAS Files

EXCLUDE SAS-file-1 <...SAS-file-n> </ MEMTYPE=mtype>;

Required Arguments

SAS-file-1 <...SAS-file-n>

specifies one or more SAS files to exclude from the copy operation. All SAS files you name in the EXCLUDE statement must be in the library that is specified in the IN= option in the COPY statement. If the SAS files are generation groups, the EXCLUDE statement allows only selection of the base versions.


Options

MEMTYPE=mtype

restricts processing to one member type. You can use the option either in parentheses after the name of each SAS file or after a forward slash.

Aliases: MTYPE=, MT=
Default: If you do not specify MEMTYPE= in the PROC DATASETS statement, the COPY statement, or in the EXCLUDE statement, the default is MEMTYPE=ALL.
See also:

Restricting Member Types for Processing

Specifying Member Types When Copying or Moving SAS Files


Excluding Many Like-Named Files

You can use shortcuts for listing many SAS files in the EXCLUDE statement. For more information, see Shortcuts for Specifying Lists of Variable Names.

Previous Page | Next Page | Top of Page