The DOCUMENT Procedure

IMPORT TO Statement

Imports the specified SAS data set or graph segment to the specified path.
Importing LISTING Output and a SAS Program

Syntax

Required Arguments

DATA= data-set-name
specifies an existing SAS data set that you want to import.
GRSEG= grseg
stores a reference to a graph segment.
grseg
specifies the 3-level catalog pathname. For example, GRSEG=Sasuser.grseg.mygraph.
See:GRSEG= option in the SAS/GRAPH: Reference
path
specifies the location where you want to import the data set or graph segment.
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.

Optional Arguments

AFTER= path
imports the data set or graph segment into the directory after the specified path.
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.
BEFORE= path
imports the data set or graph segment into the directory before the specified path. For example, the following IMPORT TO statement imports the data set Sashelp.Class to the current directory, and inserts the data set before the entry MyInfo:
import data=sashelp.class to ^ /before=MyInfo; 
run; 
Tip:You can use the symbol '^' to represent the current directory and the symbol '^^' to represent the parent directory.
data-set-option(s)
specify actions that apply only to the SAS data set.
See:SAS Data Set Options: Reference for information about SAS data sets and their options
FIRST
imports the data set or graph segment at the beginning of the directory.
LAST
imports the data set or graph segment at the end the directory.
TEXTFILE= <filename | fileref>
imports a text file into an ODS document that can be replayed to open ODS destinations.
filename
specifies the filename. filename can be a listing file, a SAS program, or any other text file.
Requirement:filename must be enclosed in quotation marks.
fileref
is a file reference that has been assigned to an external file. Use the FILENAME statement to assign a fileref.
See:For information about the FILENAME statement, see SAS Statements: Reference