Imports the specified
SAS data set or graph segment to the current
file location.
IMPORT DATA= data-set-name<data-set-option(s)>| GRSEG=grseg TO
path </ option(s)>;
|
-
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 path name.
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 path and the symbol '^^' to represent the parent path. |
-
AFTER= path
-
imports the data set or graph segment into
the file location 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
-
imports the data set or graph segment into
the file location 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 path and the symbol '^^' to represent the parent path. |
-
data-set-option(s)
-
specify actions that apply only to the SAS
data set.
See also: |
SAS Language Reference: Dictionary for information
about SAS data sets and their options |
-
FIRST
-
imports the data set or graph segment at
the beginning of the file location.
-
LAST
-
imports the data set or graph segment at
the end the file location.
![](../../../../common/61991/HTML/default/images/spacer.gif) |
![](../../../../common/61991/HTML/default/images/spacer.gif) |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.