Copies an
entry into the specified path.
Default: |
If you do not specify a location to insert the
entry into the path, then the entry is inserted at the end of the path.
|
COPY path<(where-expression)> <,
path-2<(where-expression-2)>>
<, ...path-n<(where-expression-n)>> TO path </option(s)>;
|
-
path
-
is the location where a link, output object,
or file is copied.
Requirement: |
Separate multiple
paths with commas. |
Tip: |
The '^' symbol represents the current path
and the '^^' symbol represents the parent path. |
-
AFTER= path
-
inserts a copy of an entry after the specified
path.
Tip: |
You can use the symbol '^' to represent
the current path and the symbol '^^' to represent the parent path. |
-
BEFORE= path
-
inserts a copy of an entry before the specified
path.
Tip: |
You can use the symbol '^' to represent
the current path and the symbol '^^' to represent the parent path. |
-
FIRST
-
inserts a copy of an entry at the beginning
of the specified path. For example, the following COPY TO statement inserts a copy of
the entry Monday_Report at the beginning of the root directory:
copy weekly\monday_report to \ /first;
run;
-
LAST
-
inserts a copy of an entry at the end of
the specified path.
-
LEVELS= ALL |
value
-
specifies the number of levels below the
specified path that you want to copy.
-
ALL
-
specifies all levels of the path.
-
value
-
specifies the numeric value of the path
level. For example, the following COPY TO statement copies two levels
of the entry Weekly to the entry Monthly:
copy weekly to \work.mydoc\monthly /levels = 2;
run;
Default: |
ALL |
Restriction: |
The LEVELS= option
is valid only when you specify a directory. |
-
where-expression
-
selects, for copying, entries in an ODS document that meet
a particular condition.
 |
 |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.