| Working with Spatial Data Using SAS/GIS Software |
You can manually change the values
for the destination location each time you import data. However, you can also
set new default values that will be in effect for each subsequent import unless
you manually declare specific values for an import.
The SASHELP.GISIMP data set supplies values you need
to import your spatial data. Included in this data set are two variables,
DEFMLIB and DEFSLIB, which are used to supply the default values for the Map
Entries Library and the Spatial Data Sets Library. To specify different default
values:
- Edit the SASHELP.GISIMP data set (you must have
write access to the SASHELP library).
- Change the values of the DEFMLIB and DEFSLIB variables
to the new default libref.
- Save the data set.
- Re-invoke the import
window.
If the specified libref does not exist, an error message
is issued and SASUSER is substituted for the libref.
If you do not have write access to the SASHELP library,
and you want to change the default values for DEFMLIB and DEFSLIB, copy the
SASHELP.GISIMP data set to an allocated library that you do have write access
to and assign the new location of the GISIMP data set to the macro variable
USER_FIL. For example, if you copy the SASHELP.GISIMP data set to your
SASUSER library, submit the following statement:
%LET USER_FIL=SASUSER.GISIMP;
If you want to use the default values for a particular
import without having to modify the SASUSER.GISIMP data set, you can set the
USER_FIL macro variable back to the default SASHELP.GISIMP data set. For example:
%LET USER_FIL=SASHELP.GISIMP;
The import will use the values in the data set being
pointed to by the USER_FIL macro variable.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.