To use a file specification
for specifying a data set, enclose the file specification in single
quotation marks. The specification can be a filename, or a path and
filename. The specification must follow the file naming conventions
of your operating environment.
For example, the following
code creates a file named
mydata in the default storage location, which is the location where the
SAS session was started:
data 'mydata';
The quotes are required
for a file specification; if omitted, SAS treats the specification
as a library reference. In the above example, if the quotes are omitted,
SAS creates the data set in the temporary WORK catalog and identifies
it by the name WORK.MYDATA.
To create the file in
a location other than the default location, the quoted file specification
must include the full path to the desired location.
You cannot use quoted
file specifications for the following items:
-
-
-
the _LAST_= system option