As is true in all SAS programming, permanent SAS data sets,
SAS catalogs, and external files must be defined correctly in order to be
accessed. Defining a file means that you associate a shorthand, symbolic name
with a file. The method that you use to define a file is based on the operating
environment and whether it is a SAS file or an external file.
- Librefs for permanent SAS data libraries are defined
by using the LIBNAME statement.
- Filerefs for external files are defined by using
the FILENAME statement.
For more information about the LIBNAME and FILENAME
statements, refer to SAS Language Reference: Dictionary.
Here are some special considerations to be aware of
when you define files to use with the DOWNLOAD and UPLOAD procedures:
- Statements that define librefs and filerefs for
files on the local host must be executed by using SUBMIT in the local SAS
session. They cannot be executed by using an RSUBMIT command or an RSUBMIT
statement along with the PROC DOWNLOAD or PROC UPLOAD steps.
- Statements that define librefs or filerefs for
files on the remote host must be executed on the remote host by using the
RSUBMIT command or the RSUBMIT statement. Therefore, these statements can
be executed along with the PROC DOWNLOAD or the PROC UPLOAD step, if they
are specified before the PROC statement.
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.