If you specify the
INLIB= and OUTLIB= options in the
PROC DOWNLOAD statement, you can use the MEMTYPE= option to indicate what
member types to download. You can specify the MEMTYPE= option in
- the PROC DOWNLOAD statement.
- the SELECT or the
EXCLUDE statement in parenthesis
immediately after a member name. If the type is enclosed in parenthesis, it
refers only to the member name that immediately precedes the option.
- the SELECT or the EXCLUDE statement after a slash
(/) at the end of the statement. When used following a slash, the MEMTYPE=
option refers to all members that are named in the statement unless the same
option appears in parenthesis after a name.
Valid values for the MEMTYPE= option are DATA, CATALOG
(or CAT), MDDB, FDB, DMDB, VIEW, and ALL.
If you use the MEMTYPE= option in the SELECT and EXCLUDE
statements, you can specify only one value. If you use this option in the
PROC DOWNLOAD statement, you can specify a list of values enclosed in parenthesis,
as shown here:
proc download inlib=this outlib=that
memtype=(data catalog);
You can use the MEMTYPE= option in multiple places.
When you do this, the DOWNLOAD procedure determines the type of each member
- by the value of the option in parenthesis immediately
following the member name, if present.
- otherwise, by the value of the option after the
slash in the SELECT or the EXCLUDE statement, if present.
- otherwise, by the value of the option in the PROC
DOWNLOAD statement, if present.
- If you do not specify a member type, the DOWNLOAD
procedure uses the default type, ALL.
See Purpose for examples that illustrate
the use of the MEMTYPE= option.
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.