Previous Page | Next Page

The DOCUMENT Procedure

MOVE TO Statement


Moves entries from the specified location to another location.
Restriction: The root file location cannot be moved or deleted.
Requirement: Separate multiple paths with commas.
Caution: The MOVE TO statement affects all levels of a file location below the specified starting level.

MOVE path<(where-expression)> <, path-2<(where-expression-2)>>
<, ...path-n<(where-expression-n)>> TO path </ option(s)>;


Required Arguments

path

specifies the location of links, output objects, or files that you want to move.

Tip: You can use the symbol '^' to represent the current path and the symbol '^^' to represent the parent path.

Options

AFTER= path

moves the entry after the specified entry in the path.

Tip: You can use the symbol '^' to represent the current path and the symbol '^^' to represent the parent path.
BEFORE= path

moves the entry before the specified entry in the path.

Tip: You can use the symbol '^' to represent the current path and the symbol '^^' to represent the parent path.
FIRST

moves the entry to the beginning of the specified file location.

LAST

moves the entry to the end of the specified file location.

LEVELS= ALL | value

specifies the level of the path that you want to move.

ALL

specifies all levels of the path.

value

specifies the numeric value of the path level. For example, the following MOVE TO statement moves two levels of the directory Weekly to the Monthly directory of WORK.MyDoc:

move 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 moving, entries in an ODS document that meet a particular condition.

See: Using WHERE Expressions with the DOCUMENT Procedure

Previous Page | Next Page | Top of Page