Previous Page | Next Page

The DOCUMENT Procedure

LINK Statement


Creates a symbolic link from one specified output object to another in the current file location.
LINK path TO path </ option(s)>;


Required Arguments

path

specifies the locations of the output objects that you want to link to one another.

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

Options

AFTER= path

links to the entry that follows the specified path in the current file location.

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

links to the entry that precedes the specified path in the current file location.

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

links to the first entry in the current file location.

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 file location.

Previous Page | Next Page | Top of Page