The DOCUMENT Procedure

LINK Statement

Creates a symbolic link from one specified entry to another specified entry.

Syntax

LINK path TO path </ option(s)>;

Required Argument

path
specifies the locations of the entries that you want to link to one another.
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.

Optional Arguments

AFTER= path
links to the entry that follows the specified path in the current directory.
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.
BEFORE= path
links to the entry that precedes the specified path in the current directory.
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.
FIRST
links to the first entry in the current directory.
HARD
specifies a type of link that refers to a copy of an output object within the ODS document. All data is shared between the link and the target, except names and labels.
For example, the following LINK statement creates a hard link from the output object ErrorSSCP to the output object LinkedErrorSSCP in the current directory:
link errorSSCP to linkederrorSSCP /hard; 
run;  
Restriction:A hard link can reference only an output object, and the source and target paths must be in the same ODS document. The target must exist when you create the hard link.
Interaction:A hard link and its target exist independently. Deleting a hard link does not affect the target. Similarly, deleting a target does not affect the link.
LABEL
copies the source label to the link.
Default:The source label is not copied unless the LABEL option is specified.
LAST
links to the last entry in the current directory.