DOWNLOAD Procedure
SELECT Statement
Selects specific library members or catalog entries
to download.
Restriction: |
You cannot use both the EXCLUDE and SELECT statements
in the same PROC DOWNLOAD step.
|
Note: |
The SELECT statement also enables you to maintain an
ordering and grouping of catalog entries that contain graphics output,
because entries are downloaded into the client SAS catalog in the
order that you specify them in the SELECT statement.
|
Syntax
SELECT lib-member-list </ MEMTYPE=mtype>;
SELECT cat-entry-list </ ENTRYTYPE=etype>;
Syntax Description
Use the format lib-member-list </ MEMTYPE=mtype> when
you specify the INLIB= and OUTLIB= options in the PROC DOWNLOAD statement.
Use the format cat-entry-list </ ENTRYTYPE=etype>
when you specify the INCAT= and OUTCAT= options in the PROC DOWNLOAD
statement.
- lib-member-list
-
specifies which library
members to download. You can name each member explicitly or use one
of the following forms:
- prefix:
-
specifies all members
whose names begin with the character string prefix. For example, if you specify TEST:
, all
members with names that begin with the letters TEST
are selected for downloading.
- first-last
-
specifies all members
whose names have a value between first and last. For example, if
you specify TEST1-TEST3
, any files that are
named TEST1
, TEST2
, or TEST3
are selected for downloading.
Restriction:first and last must begin with identical character strings
and must end in a number.
- cat-entry-list
-
specifies which catalog
entries to download. Each element of cat-entry-list has the form entry.type.
- entry
-
is the name of an entry
in the catalog to download.
- .type
-
is the type of the
catalog entry. This part of the name is optional.
- MEMTYPE=mtype
-
specifies a member
type to download.
Here are the valid
member types:
Alias:MTYPE=, MT=
Requirement:To use this option, you must also specify the INLIB=
and OUTLIB= options in the PROC DOWNLOAD statement.
- ENTRYTYPE=etype
-
specifies a catalog
entry type to download. Examples of catalog entry types include FORMAT
and DATA.
Note: The SELECT statement also
enables you to maintain an ordering and grouping of catalog entries
that contain graphics output, because entries are downloaded into
the client SAS catalog in the order that you specify them in the SELECT
statement.
Alias:ETYPE=, ET=
Requirement:To use this option, you must specify the INCAT= and OUTCAT=
options in the PROC DOWNLOAD statement.
Copyright © SAS Institute Inc. All rights reserved.