Importing Spatial Data |
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. Use caution when changing these values because the import has predefined values in the SASHELP.GISIMP data set that are needed for the import to complete.
The SASHELP.GISIMP data set supplies values that 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, complete the following steps:
If the specified library does not exist, an error message is issued, and the name 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 the DEFMLIB and DEFSLIB variables, then copy the SASHELP.GISIMP data set to an allocated library to which you do have WRITE access. Change the values and save the data set as described above. Before you open the GIS Spatial Data Importing window, you must 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 reset the USER_FIL macro variable to the default SASHELP.GISIMP data set. For example:
%LET USER_FIL=SASHELP.GISIMP;
The import will use the values in the data set that the USER_FIL macro variable points to.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.